Hi folks, looking for a bit of help here with the following:
I have a range of cells, holding date values. These cells could also be empty.
I have a 'start' and an 'end' date, and I want to check each date in the range mentioned above falls between the start and end dates.
If date falls between start and end dates, no action. If the date cell is empty, no action.
If date falls outside either the start or end dates, increment a counter.
Repeat for all cells in the range.
I've tried with a For Each and it's successfully moving thru the range, but I'm having issues getting the logic and sequence of the If...Then...Else correct.
I'm back in the world of VBA after a few years of not having to use it, but due to a role change I'm back now and my skills are rusty!
Thanks in advance
I have a range of cells, holding date values. These cells could also be empty.
I have a 'start' and an 'end' date, and I want to check each date in the range mentioned above falls between the start and end dates.
If date falls between start and end dates, no action. If the date cell is empty, no action.
If date falls outside either the start or end dates, increment a counter.
Repeat for all cells in the range.
I've tried with a For Each and it's successfully moving thru the range, but I'm having issues getting the logic and sequence of the If...Then...Else correct.
I'm back in the world of VBA after a few years of not having to use it, but due to a role change I'm back now and my skills are rusty!
Thanks in advance