ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how do I build a pause (or delay) into my macro? (https://www.excelbanter.com/excel-programming/289966-how-do-i-build-pause-delay-into-my-macro.html)

R

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!

Paul B[_7_]

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!




Tom Ogilvy

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!





All times are GMT +1. The time now is 08:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com