Time limit on macro

J

Julie

Hi - here's a strange question:

I have a macro that I want to automatically disable on a
certain date, so that it is no longer usable. Is there a
way to do this in the code?

Thanks
 
D

Dave Lett

Hi Julie,

You can use something like the following:

If Date < "8/4/2004" Then
'''run your routine
End If

However, if the user manually changes the system date, then the routine can
be run.

HTH,
Dave
 
J

Julie

THANK YOU!!!
-----Original Message-----
Hi Julie,

You can use something like the following:

If Date < "8/4/2004" Then
'''run your routine
End If

However, if the user manually changes the system date, then the routine can
be run.

HTH,
Dave




.
 
J

Jezebel

The line would be better written:

If Date < #8/4/2004# then

Otherwise you may fall foul of some users' regional settings.
 

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

Top