Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default starting macros via scheduled tasks

I have an excel spread sheet open 24/7 logging data. Once a day I us
application.OnTime to run a macro. However this VB code is embedde
within the excel spread sheet.

Is it possible to start the same macro once a day using the window
scheduled task as opposed to using any vba code

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default starting macros via scheduled tasks

Hi
one idea:
- put your code in the workbook_open event of your file
- open this file with the Windows scheduler
- also close the file in the workbook_open event

-----Original Message-----
I have an excel spread sheet open 24/7 logging data.

Once a day I use
application.OnTime to run a macro. However this VB code

is embedded
within the excel spread sheet.

Is it possible to start the same macro once a day using

the windows
scheduled task as opposed to using any vba code?


---
Message posted from http://www.ExcelForum.com/

.

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
Windows Scheduled Tasks Norm Excel Discussion (Misc queries) 2 April 30th 10 06:44 AM
how many people are scheduled between... jat Excel Worksheet Functions 0 October 22nd 09 10:39 PM
What is correct syntax when using Scheduled Tasks? Doug Excel Discussion (Misc queries) 0 March 9th 09 03:49 PM
Scheduled Task Matt. Excel Programming 4 April 6th 04 03:07 PM
Starting a userform upon starting the file Fritznel Excel Programming 1 July 28th 03 05:37 AM


All times are GMT +1. The time now is 10:21 PM.

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"