Mikeymike_W
Board Regular
- Joined
- Feb 25, 2016
- Messages
- 171
Hi,
I'm wanting to trigger an event between certain dates.
I have a named range called "Licence" on the sheet named "Lists". Within "licence is a date. For the full week before this date is met I want a message box to open, after the date I want the code to be bypassed.
I was trying to use the" Now" function but it doesn't seem to work for a range.
I was trying:
If Range("Licence") <= Now + 7 then
Msgbox "Your licence is about to expire"
End if
Thanks in advance for any support you can provide,
Mike
I'm wanting to trigger an event between certain dates.
I have a named range called "Licence" on the sheet named "Lists". Within "licence is a date. For the full week before this date is met I want a message box to open, after the date I want the code to be bypassed.
I was trying to use the" Now" function but it doesn't seem to work for a range.
I was trying:
If Range("Licence") <= Now + 7 then
Msgbox "Your licence is about to expire"
End if
Thanks in advance for any support you can provide,
Mike