Link to home
Start Free TrialLog in
Avatar of alisonthom
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
Avatar of Roy Cox
Roy Cox
Flag of United Kingdom of Great Britain and Northern Ireland image

Why VBA?
Avatar of alisonthom
alisonthom

ASKER

It is part of other VBA I am writing
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Subodh,  that is exactly what I was looking for.  Many thanks!
You're welcome Alisonthom! Glad it worked as desired.