Can I run a macro as the "Value if true" in the IF function?

L

LOTS

I would like to run a macro to protect the sheet if the current date is
beyond a certain date. This needs to happen without entry from the user.
 
D

Don Guillett

this idea should hlep

If Date > "1/31/2005" Then MsgBox "Demo Expired": Exit Sub
 
Top