Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Schedule downloads

I have a macro (GetQuotes) to download market quotes. Now I need to write a
macro to run the GetQuotes macro every 10 minutes from 6PM Sun to 5PM Fri.
Don't know how to do that.

[RBS posted the following reply:
Simplest is to use the Windows task scheduler.
This can start Excel with a workbook as an argument to open that workbook.
Code can then be started from the Workbook_Open event and your code can then
detect the end of Friday to stop running and close the workbook
and then do an Application.Quit.]

I am not sure what the suggestion means. Does it mean have Windows Task
Scheduler open Excel every 10 minutes? What I'd like is a macro that does the
scheduling. Is that possible? And, how would I detect end of Friday?

Thanks,
Andy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Schedule downloads

This will get you most of the way the
http://www.cpearson.com/excel/OnTime.aspx

Insert your code in the appropriate place and you should be in business.


Regards,
Ryan--


--
RyGuy


"Andyjim" wrote:

I have a macro (GetQuotes) to download market quotes. Now I need to write a
macro to run the GetQuotes macro every 10 minutes from 6PM Sun to 5PM Fri.
Don't know how to do that.

[RBS posted the following reply:
Simplest is to use the Windows task scheduler.
This can start Excel with a workbook as an argument to open that workbook.
Code can then be started from the Workbook_Open event and your code can then
detect the end of Friday to stop running and close the workbook
and then do an Application.Quit.]

I am not sure what the suggestion means. Does it mean have Windows Task
Scheduler open Excel every 10 minutes? What I'd like is a macro that does the
scheduling. Is that possible? And, how would I detect end of Friday?

Thanks,
Andy

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
Template downloads Bruce Burlingame New Users to Excel 1 November 5th 08 12:01 AM
Macro to schedule downloads Andyjim Excel Programming 2 January 23rd 08 12:01 AM
Dynamic Dependant Downloads Philip J Smith Excel Discussion (Misc queries) 14 March 6th 07 02:31 PM
File Downloads in VBA Sysygy Excel Discussion (Misc queries) 1 April 8th 05 06:45 PM


All times are GMT +1. The time now is 09:22 AM.

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

About Us

"It's about Microsoft Excel"