G Guest May 24, 2007 #2 This is right out of VBA help file. This example runs my_Procedure at 5 P.M.: Application.OnTime TimeValue("17:00:00"), "my_Procedure" This example cancels the OnTime setting from the previous example.: Application.OnTime EarliestTime:=TimeValue("17:00:00"), _ Procedure:="my_Procedure", Schedule:=False
This is right out of VBA help file. This example runs my_Procedure at 5 P.M.: Application.OnTime TimeValue("17:00:00"), "my_Procedure" This example cancels the OnTime setting from the previous example.: Application.OnTime EarliestTime:=TimeValue("17:00:00"), _ Procedure:="my_Procedure", Schedule:=False
G Guest May 24, 2007 #3 Here is a site for additional information on using the On Time method. http://www.cpearson.com/excel/ontime.htm
Here is a site for additional information on using the On Time method. http://www.cpearson.com/excel/ontime.htm
R RB Smissaert May 25, 2007 #4 See if you can find the file tskschd.dll from E Morgillo on the net if you want to do more than just run a task. RBS
See if you can find the file tskschd.dll from E Morgillo on the net if you want to do more than just run a task. RBS
G gimme_this_gimme_that May 29, 2007 #5 I'm trying to find vba code to run a windows scheduled task. Any ideas? Click to expand... If you're on XP go to All Programs->Accessories->System Tools- Scheduled Tasks . Click to expand... You can run Excel.exe, a VBScript, a BAT script, or whatever from there.
I'm trying to find vba code to run a windows scheduled task. Any ideas? Click to expand... If you're on XP go to All Programs->Accessories->System Tools- Scheduled Tasks . Click to expand... You can run Excel.exe, a VBScript, a BAT script, or whatever from there.