![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: OKC
Posts: 98
|
it works great! thanks.
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: OKC
Posts: 98
|
I have a macro that prints many sheets in a workbook. I want to be able to pause the macro for a specified amount of time so the printer buffer doesn't overrun. What line of code can I put in the macro to pause it.
thanks Eddie G. |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Use the "Wait" command. e.g. to stick in a 10 second pause:
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Mark, I don't know if it works (I'm just guessing here) because if I remember correctly, the .Wait method pauses the entire application and possibly the system (Again, just guessing).... so, I'm not sure if the computer would still be able to keep processing the job.
Maybe, a for next that "simulates" the .Wait ? I don't know... maybe it DOES work ! |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
I would think that it just pauses the application. You can use it to time keypresses if you ever get desperate enough to use the "SendKeys" command.
Then again, I'm not going to argue because maybe it doesn't work. I'm sure I've been proved wrong in the past. Just can't remember any specific instances. |
|
|
|
|
|
#6 |
|
New Member
Join Date: Mar 2002
Posts: 33
|
fyi - i had a similar problem, and using application.wait as you wrote did work for me.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|