Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
You can us Ontime This goes in the workbook open event module to kick things off Private Sub Workbook_Open() Application.OnTime Now + TimeValue("00:01:00"), "MyMacro" End Sub and this goes in a general module Public dTime As Date Sub MyMacro() dTime = Now + TimeValue("00:01:00") Application.OnTime dTime, "MyMacro" 'Your code End Sub As written this runs MyMacro every 1 minute, change this to what you want Mike "sun" wrote: Dear Excel Gurus, Can I set a timer to run a macro at regular time intervals? Is there a convenient API to use? Thank you very much in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Setting timer to run macro at regular intervals | Excel Programming | |||
how to insert a row at regular intervals of row | Excel Programming | |||
Inserting a Row Range at regular intervals | Excel Programming | |||
How to trigger a macro at regular intervals? | Excel Programming | |||
Timer which counting smaller than 1 second intervals | Excel Programming |