Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 193
Default scheduling macros to run automatically

Dear all,

I have a quick question regarding macros. What is the best (and easiest)
way to have macros run automatically at prespecified times? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default scheduling macros to run automatically

I use Application.OnTime

Say you woould like to run MySub at 12:00

Sub Run()

Application.OnTime date + 12:00, "MySub"


End Sub

hth

Toy.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default scheduling macros to run automatically

If you are talking about on a daily basis, then use the windows scheduler to
open a workbook at a certain time(s).

In the workbook_open event call your macros (in that workbook).

http://www.cpearson.com/excel/events.htm for an overview of events

if you just want to schedule a few things to happen when you already have
excel open you can look at:
http://www.cpearson.com/excel/ontime.htm

--
Regards,
Tom Ogilvy


"robert" wrote:

Dear all,

I have a quick question regarding macros. What is the best (and easiest)
way to have macros run automatically at prespecified times? Thanks.

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
Automatically run macros Shirley Excel Discussion (Misc queries) 1 August 7th 06 11:08 PM
Scheduling macros in excel to run auto ewagz Excel Programming 4 January 22nd 06 11:37 PM
run macros automatically saunak Excel Discussion (Misc queries) 3 April 28th 05 12:58 PM
scheduling macros for excel b Excel Programming 4 February 17th 04 11:34 PM
Scheduling macros to run automatically meera chandan Excel Programming 1 August 6th 03 09:46 PM


All times are GMT +1. The time now is 05:50 PM.

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"