Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a date or a time to trigger a macro

Status
Not open for further replies.

wasmith1963

IS-IT--Management
Nov 25, 2002
2
US
Can you use a date or time to trigger a macro? For instance, I want to run a series of make table and update queries every Monday at 8:00 am.

When I set the date/time condition in the macro window (ex. Date() In #2/3/2003#,#2/10/2003# and time()=8:00:00 AM) the RunMacro Command fails to launch the macro(s).

Any suggestions?

Thanks!
 
Just run your exe from Windows Scheduled tasks is thhe easy way
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Hey thanks for the tip. With some massaging of my autoexec macro I have managed to make this work.

Thanks again.
 
Is there any other way of doing this? - I don't want to run the macro from my scheduler because other people use my database, so I want the macro to run itself from excel on a particular date (and then if for any reason I left, the database would still be workable)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top