We help IT Professionals succeed at work.

Excel VBA - corresponding day in previous month

159 Views
Last Modified: 2019-03-04
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
Comment
Watch Question

Roy CoxGroup Finance Manager
CERTIFIED EXPERT

Commented:
Why VBA?

Author

Commented:
It is part of other VBA I am writing
Excel & VBA Expert
CERTIFIED EXPERT
Most Valuable Expert 2018
Awarded 2015
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Hi Subodh,  that is exactly what I was looking for.  Many thanks!
Subodh Tiwari (Neeraj)Excel & VBA Expert
CERTIFIED EXPERT
Most Valuable Expert 2018
Awarded 2015

Commented:
You're welcome Alisonthom! Glad it worked as desired.