Excel VBA - Date and IF Function inside the VBA is giving an error -


i have requirement in, trying find if date in data greater or equal current date should "yes".

this code,

rdate = application.worksheetfunction.if(rsdate>=date, "yes", "no") 

my error object doesn't support property of method. kindly me this. share thoughts

you should use datediff function, can learn how use here msdn

if datediff("d", date, rsdate) >= 0     rdate = "yes" else     rdate = "no" end if 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -