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

Hi,

I want to download market data into Excel every 10 minutes from 6PM Sun to
5PM Fri. I have a macro (GetQuotes) to do the actual download, which works
fine. But I have no clue how to VBA running that macro on a schedule,
stopping on weekends. The scheduling macro should launch when the file opens,
and of course it needs to know the date and time automatically. Further, I'd
like to be able to interupt and restart the scheduling macro without closing
the file.

Andy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Macro to schedule downloads

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.

RBS

"Andyjim" wrote in message
...
Hi,

I want to download market data into Excel every 10 minutes from 6PM Sun to
5PM Fri. I have a macro (GetQuotes) to do the actual download, which works
fine. But I have no clue how to VBA running that macro on a schedule,
stopping on weekends. The scheduling macro should launch when the file
opens,
and of course it needs to know the date and time automatically. Further,
I'd
like to be able to interupt and restart the scheduling macro without
closing
the file.

Andy


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Macro to schedule downloads

Thanks RBS, I'll look into the task scheduler. BUT, first I need a macro that
will run my GetQuotes macro every 10 minutes. I have no idea how to do that
in VBA. Also, you said code can detect Fri 5PM and stop running. I don't have
a clue on that either. Would appreciate help in that area.
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
Dynamic Dependant Downloads Philip J Smith Excel Discussion (Misc queries) 14 March 6th 07 02:31 PM
Comma delimiter for csv downloads? Les M Excel Discussion (Misc queries) 7 January 31st 06 01:03 AM
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:31 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"