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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
this idea should hlep

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top