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
VBAMicrosoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Subodh Tiwari (Neeraj)

8/22/2022 - Mon
Roy Cox

Why VBA?
alisonthom

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

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
alisonthom

ASKER
Hi Subodh,  that is exactly what I was looking for.  Many thanks!
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Subodh Tiwari (Neeraj)

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