Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 63
Default Macro wait 30 seconds then Complete the Macro

Is there a way that once a macro is started, stop at a point and wait 15
seconds before it runs through the rest of the macro?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Macro wait 30 seconds then Complete the Macro

hi
one way.
Application.Wait(Now + TimeValue("0:00:15"))

this will pause the macro 15 seconds.

regards
FSt1

"Vick" wrote:

Is there a way that once a macro is started, stop at a point and wait 15
seconds before it runs through the rest of the macro?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 449
Default Macro wait 30 seconds then Complete the Macro

It depends on what you want to happen in the meantime, or what to allow, or
why. There are "wait" functions that almost freezes the computer while
waiting. I'd prefer to split the procedure in two and call the second one
with the Application.Wait command (see Help on this). But if you expect user
interaction or want to wait for some other procedure to finish, see if
there's another way to do it.

HTH. Best wishes Harald


"Vick" wrote in message
...
Is there a way that once a macro is started, stop at a point and wait 15
seconds before it runs through the rest of the macro?


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
Wait function in Excel 2000 Macro fryb53 Excel Discussion (Misc queries) 3 January 16th 08 02:49 PM
MACRO ACTIVATED EVERY 5 SECONDS CC Excel Discussion (Misc queries) 1 May 4th 06 03:02 PM
Please I need some help to complete a VBA Macro Francesco Excel Discussion (Misc queries) 7 April 11th 06 02:06 PM
Converting Julian Seconds with a macro to replace old seconds data Keldair Excel Discussion (Misc queries) 2 February 18th 06 12:09 AM
How do I get an excel macro to stop at a cell & wait for imput? oscar_az Excel Discussion (Misc queries) 1 January 11th 06 01:38 PM


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