baitmaster
Well-known Member
- Joined
- Mar 12, 2009
- Messages
- 2,042
Edit: Application or Worksheetfunction, both giving same issue
Getting strange results in VBA when trying to work with EOMONTH. Debugging in Immediate I've got:
I'm expecting it to return 28 Feb 2018 but it's coming up with the 27th instead. Any ideas why?
I'm using CLNG because I'm in the UK and without it I'm getting an answer in 2010, trying to rule out US/UK date issues
Is there a known instability with VBA EOMONTH? Or is the answer staring me in the face but I just can't see it?!
Using Office Pro Plus 2013
Thanks
Getting strange results in VBA when trying to work with EOMONTH. Debugging in Immediate I've got:
Code:
?format(WorksheetFunction.EoMonth(clng(Date),0),"dd mmm yyyy")
I'm using CLNG because I'm in the UK and without it I'm getting an answer in 2010, trying to rule out US/UK date issues
Is there a known instability with VBA EOMONTH? Or is the answer staring me in the face but I just can't see it?!
Using Office Pro Plus 2013
Thanks
Last edited: