Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
R R is offline
external usenet poster
 
Posts: 6
Default how do I build a pause (or delay) into my macro?

I am running a macro that activates a 2nd macro, waits for the data to
load (maybe 5-10 seconds) then outputs the response, then an identical
macro #3 etc. through #10. Each rnning from a different data set. The
problem I am having is that my meta-macro (that runs #1 through #10)
runs so fast I cannot look at the output between each one. I want my
meta-macro to run #1, pause 15 seconds so I can manually look at the
data and then run #2, but I have no clue how to write a pause command
in the code (yes, I am a total newbie!) Thanks for any pointers!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default how do I build a pause (or delay) into my macro?

Try this line of code to make the macro wait
Application.Wait Now + TimeValue("00:00:15")
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 97 & 2000
** remove news from my email address to reply by email **

"R" wrote in message
...
I am running a macro that activates a 2nd macro, waits for the data to
load (maybe 5-10 seconds) then outputs the response, then an identical
macro #3 etc. through #10. Each rnning from a different data set. The
problem I am having is that my meta-macro (that runs #1 through #10)
runs so fast I cannot look at the output between each one. I want my
meta-macro to run #1, pause 15 seconds so I can manually look at the
data and then run #2, but I have no clue how to write a pause command
in the code (yes, I am a total newbie!) Thanks for any pointers!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how do I build a pause (or delay) into my macro?

Look in help at the Wait command.

--
Regards,
Tom Ogilvy

"R" wrote in message
...
I am running a macro that activates a 2nd macro, waits for the data to
load (maybe 5-10 seconds) then outputs the response, then an identical
macro #3 etc. through #10. Each rnning from a different data set. The
problem I am having is that my meta-macro (that runs #1 through #10)
runs so fast I cannot look at the output between each one. I want my
meta-macro to run #1, pause 15 seconds so I can manually look at the
data and then run #2, but I have no clue how to write a pause command
in the code (yes, I am a total newbie!) Thanks for any pointers!



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
pause a macro tsmith Excel Discussion (Misc queries) 9 January 22nd 09 12:47 AM
How do I pause a macro? Dave H Excel Discussion (Misc queries) 5 May 3rd 08 04:53 PM
How to build build a macro that automatically imports PedroPeso Excel Programming 1 December 26th 03 08:14 PM
Can you build in a delay... Jeff Harbin[_2_] Excel Programming 2 November 17th 03 08:21 AM
Pause macro Bill Barclift Excel Programming 0 September 30th 03 09:22 PM


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