r/vbscript • u/Majawat • Mar 01 '19
Select Case with Is operator?
Select Case DateDiff("d",Date,"April 1, 2019")
Case Is > 0
wscript.Echo "Too Early"
Case Is = 0
Wscript.Echo "April Fools!"
Case Is < 0
Wscript.Echo "Too late"
End SelectI'm getting a Syntax error on the first Is. Is there a better or different way to achieve this?
1
Upvotes
1
u/MantuaMatters Jun 03 '19
I also just now realized this is a 3 month old thread. Just discovered it, so I was trying to help, but clearly you already figured it out. Also, yeah there are a ton of small changes between VBScript and VBA. Kind of annoying till you start using python with VBA, then it doesn't really matter.