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

Goodday,

You can use "OnTime" method to schedule a macro to run at a specific time.

Is there also a method to schedule a macro to run at and/or after a specific
date (system-date)?



TKs,
Mischa




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Apllication.OnTime

Hi Mischa,

If you give a full date/time OnTime will work to that date. Something like:

Application.OnTime Date + 1 + Time(12,0,0), "MyRoutine"

will run at noon tomorrow.

HTH

Peter Beach

"Mischa Browne" wrote in message
...
Goodday,

You can use "OnTime" method to schedule a macro to run at a specific time.

Is there also a method to schedule a macro to run at and/or after a

specific
date (system-date)?



TKs,
Mischa






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Apllication.OnTime

Dear Peter,





Thanks, but does this mean I have to keep the workbook (that contains the
macro) active until tomorrow.

Or can I just open the workbook, tomorrow and then the macro will run?





MRegards,

Mischa



"Peter Beach" schreef in bericht
...
Hi Mischa,

If you give a full date/time OnTime will work to that date. Something

like:

Application.OnTime Date + 1 + Time(12,0,0), "MyRoutine"

will run at noon tomorrow.

HTH

Peter Beach

"Mischa Browne" wrote in message
...
Goodday,

You can use "OnTime" method to schedule a macro to run at a specific

time.

Is there also a method to schedule a macro to run at and/or after a

specific
date (system-date)?



TKs,
Mischa








  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Apllication.OnTime

It has to remain open.

--
Regards,
Tom Ogilvy

"Mischa Browne" wrote in message
...
Dear Peter,





Thanks, but does this mean I have to keep the workbook (that contains the
macro) active until tomorrow.

Or can I just open the workbook, tomorrow and then the macro will run?





MRegards,

Mischa



"Peter Beach" schreef in bericht
...
Hi Mischa,

If you give a full date/time OnTime will work to that date. Something

like:

Application.OnTime Date + 1 + Time(12,0,0), "MyRoutine"

will run at noon tomorrow.

HTH

Peter Beach

"Mischa Browne" wrote in message
...
Goodday,

You can use "OnTime" method to schedule a macro to run at a specific

time.

Is there also a method to schedule a macro to run at and/or after a

specific
date (system-date)?



TKs,
Mischa










  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Apllication.OnTime

So actually,

There is no code which allows a macro to run at a specific date?

Fe Monday July 19 2004 at or after 1 pm


Adios,
Mischa


"Tom Ogilvy" schreef in bericht
...
It has to remain open.

--
Regards,
Tom Ogilvy

"Mischa Browne" wrote in message
...
Dear Peter,





Thanks, but does this mean I have to keep the workbook (that contains

the
macro) active until tomorrow.

Or can I just open the workbook, tomorrow and then the macro will run?





MRegards,

Mischa



"Peter Beach" schreef in bericht
...
Hi Mischa,

If you give a full date/time OnTime will work to that date. Something

like:

Application.OnTime Date + 1 + Time(12,0,0), "MyRoutine"

will run at noon tomorrow.

HTH

Peter Beach

"Mischa Browne" wrote in message
...
Goodday,

You can use "OnTime" method to schedule a macro to run at a specific

time.

Is there also a method to schedule a macro to run at and/or after a
specific
date (system-date)?



TKs,
Mischa














  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Apllication.OnTime

Mischa,

Try

Application.OnTime DateSerial(2004,7,19) + TimeSerial(13,0,0),
"MacroName"

Note that Excel must remain open from the time you execute the
OnTime macro until the scheduled time.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Mischa Browne" wrote in message
...
So actually,

There is no code which allows a macro to run at a specific

date?

Fe Monday July 19 2004 at or after 1 pm


Adios,
Mischa


"Tom Ogilvy" schreef in bericht
...
It has to remain open.

--
Regards,
Tom Ogilvy

"Mischa Browne" wrote in message
...
Dear Peter,





Thanks, but does this mean I have to keep the workbook

(that contains
the
macro) active until tomorrow.

Or can I just open the workbook, tomorrow and then the

macro will run?





MRegards,

Mischa



"Peter Beach" schreef in bericht
...
Hi Mischa,

If you give a full date/time OnTime will work to that

date. Something
like:

Application.OnTime Date + 1 + Time(12,0,0), "MyRoutine"

will run at noon tomorrow.

HTH

Peter Beach

"Mischa Browne" wrote in message
...
Goodday,

You can use "OnTime" method to schedule a macro to run

at a specific
time.

Is there also a method to schedule a macro to run at

and/or after a
specific
date (system-date)?



TKs,
Mischa














  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Apllication.OnTime

Of course you could write code to save the scheduled date and time and
reinitiate the ontime event using the workbook_open event. But just setting
Ontime does not persist when you close excel. (I guess I should have said
you need to keep excel open - I don't believe you need to keep that specific
workbook open).

--
Regards,
Tom Ogilvy

"Mischa Browne" wrote in message
...
Dear Peter,





Thanks, but does this mean I have to keep the workbook (that contains the
macro) active until tomorrow.

Or can I just open the workbook, tomorrow and then the macro will run?





MRegards,

Mischa



"Peter Beach" schreef in bericht
...
Hi Mischa,

If you give a full date/time OnTime will work to that date. Something

like:

Application.OnTime Date + 1 + Time(12,0,0), "MyRoutine"

will run at noon tomorrow.

HTH

Peter Beach

"Mischa Browne" wrote in message
...
Goodday,

You can use "OnTime" method to schedule a macro to run at a specific

time.

Is there also a method to schedule a macro to run at and/or after a

specific
date (system-date)?



TKs,
Mischa










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
Find %ontime & SUMIF ontime ie: find matching sets within Range... Chris T-M Excel Worksheet Functions 3 October 10th 08 08:14 PM
.ontime Grrrrrumpy Excel Discussion (Misc queries) 2 April 8th 07 04:18 PM
OnTime bug? Antonio Excel Discussion (Misc queries) 0 June 9th 06 08:24 PM
OnTime...Please Help Michael_I Excel Programming 9 May 24th 04 07:56 PM
OnTime Help Mark Scholes Excel Programming 1 January 30th 04 03:48 AM


All times are GMT +1. The time now is 09:05 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"