Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Schedule Macro doesn't seem to run any suggestions
Below is a scheduled macro to run everyday at 5:00 am. It doesn't seem to be
working. Does anybody know how to fix? Sub Schedule() Application.OnTime EarliestTime:=TimeValue("5:00 AM"), Procedu="RefreshDaily", Schedule:=True End Sub Thanks |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Schedule Macro doesn't seem to run any suggestions
On Dec 24, 11:10*am, jk9533 wrote:
Below is a scheduled macro to run everyday at 5:00 am. *It doesn't seem to be working. *Does anybody know how to fix? Sub Schedule() * * Application.OnTime EarliestTime:=TimeValue("5:00 AM"), Procedu="RefreshDaily", Schedule:=True End Sub Thanks You need the date as well as the time: Application.OnTime EarliestTime:=Date + TimeSerial(5, 0, 0) + 1 will schedule the next run tomorrow gsnu2007k |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Schedule Macro doesn't seem to run any suggestions
To have it run everyday do I still need the "+1"
" wrote: On Dec 24, 11:10 am, jk9533 wrote: Below is a scheduled macro to run everyday at 5:00 am. It doesn't seem to be working. Does anybody know how to fix? Sub Schedule() Application.OnTime EarliestTime:=TimeValue("5:00 AM"), Procedu="RefreshDaily", Schedule:=True End Sub Thanks You need the date as well as the time: Application.OnTime EarliestTime:=Date + TimeSerial(5, 0, 0) + 1 will schedule the next run tomorrow gsnu2007k |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Schedule Macro doesn't seem to run any suggestions
If you include the line in RefreshDaily, It schedules the next entry
for tomorrow. So the +1 is necessary! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
macro does not work in Office 2007... suggestions: | Excel Discussion (Misc queries) | |||
Macro for creating a schedule | Excel Discussion (Misc queries) | |||
Schedule a Macro to run every 5 minutes | Excel Discussion (Misc queries) | |||
Schedule an Excel macro | Excel Discussion (Misc queries) | |||
Schedule a macro running | Excel Discussion (Misc queries) |