View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Paul B[_7_] Paul B[_7_] is offline
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!