alisonthom
asked on
Excel VBA - corresponding day in previous month
Hi
I would appreciate help with trying to return a TRUE/FALSE as to whether there a corresponding day in the previous month.
For example, if the current day is 25th Feb 2019, return TRUE since there is a corresponding day (25th Jan 2019) in the previous month. But if the current day is 31st Dec 2018 return FALSE since there is no corresponding day in the previous month.
Thanks in advance
Alison
I would appreciate help with trying to return a TRUE/FALSE as to whether there a corresponding day in the previous month.
For example, if the current day is 25th Feb 2019, return TRUE since there is a corresponding day (25th Jan 2019) in the previous month. But if the current day is 31st Dec 2018 return FALSE since there is no corresponding day in the previous month.
Thanks in advance
Alison
Why VBA?
ASKER
It is part of other VBA I am writing
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Subodh, that is exactly what I was looking for. Many thanks!
You're welcome Alisonthom! Glad it worked as desired.