Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default use vba to run a windows scheduled task

I'm trying to find vba code to run a windows scheduled task. Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default use vba to run a windows scheduled task

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"), _
Procedu="my_Procedure", Schedule:=False



" wrote:

I'm trying to find vba code to run a windows scheduled task. Any ideas?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default use vba to run a windows scheduled task

Here is a site for additional information on using the On Time method.

http://www.cpearson.com/excel/ontime.htm


" wrote:

I'm trying to find vba code to run a windows scheduled task. Any ideas?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default use vba to run a windows scheduled task

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


wrote in message
oups.com...
I'm trying to find vba code to run a windows scheduled task. Any ideas?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default use vba to run a windows scheduled task

On May 24, 7:22 am, wrote:
I'm trying to find vba code to run a windows scheduled task. Any ideas?


If you're on XP go to All Programs-Accessories-System Tools-
Scheduled Tasks .


You can run Excel.exe, a VBScript, a BAT script, or whatever from
there.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
After Windows update scheduled task uses wrong version of Excel CharlesW Excel Discussion (Misc queries) 0 July 15th 09 04:53 PM
Scheduled Task Saving from a Macro Max Excel Programming 1 May 21st 07 06:30 PM
Opening an add-in hangs when run from scheduled task [email protected] Excel Programming 0 May 25th 05 04:17 PM
Scheduled task hanging codemind Excel Programming 3 May 7th 04 03:03 PM
Scheduled Task Matt. Excel Programming 4 April 6th 04 03:07 PM


All times are GMT +1. The time now is 03:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"