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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run a Macro Once after timer

Status
Not open for further replies.

webjunk

MIS
Dec 28, 1999
42
0
0
US
What do I need to do if I want to run a macro 10 seconds after I open a form. I tried the Timer Interval but it keeps running the macro every 10 seconds.

Thanks in advanced
 
One way is to run a line of code after your macro has run the first time, along the lines of Me.TimerInterval = 0.

you will need to add a similar line to the forms OnOpen event to reset the timer to 10secs (remember that the timer interval is shown in milliseconds...)

HTH

Nigel Nigel
Didn't someone say work is supposed to be fun? They didn't have computers then I guess....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top