engineer69
New Member
- Joined
- Apr 3, 2009
- Messages
- 34
I have been unable to get VBA (not Excel formulas) on how to find the amount of weeks in a given month. Example: for the date of 1/1/2018 there are 5 weeks and for 2/1/2018 there are 4 weeks.
This Excel formula seems to work "=4+(DAY(A21-DAY(A21)+35)< WEEKDAY(A21-DAY(A21)-3))", but I need it in VBA. Has anybody found a way to do this?
This Excel formula seems to work "=4+(DAY(A21-DAY(A21)+35)< WEEKDAY(A21-DAY(A21)-3))", but I need it in VBA. Has anybody found a way to do this?