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
Post a Comment