Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
simple print loop crashes
I can't figure out why the following code stops executing after each
loop. When I step through the code it works fine. When I run it it stops execution is interupted after each loop; if I "continue" it picks up and works fine. Is there something that needs to follow the PrintPreview (or PrintOut) statement to keep it from interupting? Sub test2() For i = 1 To 3 Worksheets(i).PrintPreview Next i End Sub Thanks Ken |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
simple print loop crashes
printOUT will not stop. printPREVIEW will until you touch the c key or
print. That's what preview means...... -- Don Guillett Microsoft MVP Excel SalesAid Software "Ken" wrote in message ... I can't figure out why the following code stops executing after each loop. When I step through the code it works fine. When I run it it stops execution is interupted after each loop; if I "continue" it picks up and works fine. Is there something that needs to follow the PrintPreview (or PrintOut) statement to keep it from interupting? Sub test2() For i = 1 To 3 Worksheets(i).PrintPreview Next i End Sub Thanks Ken |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
simple print loop crashes
Don
They both had the exact same behaviour; the code stopped executing pending my clicking "continue". Previously, the PrintPreview mode would continue once I clicked "close" on the Excel menu and PrintOut would run continuously. Somehow it fixed itself when I restrated Excel. Thanks for taking the time to consider this post and all your other inputs. Ken On Aug 5, 3:04*pm, "Don Guillett" wrote: printOUT will not stop. printPREVIEW will until you touch the c key or print. That's what preview means...... -- Don Guillett Microsoft MVP Excel SalesAid Software "Ken" wrote in message ... I can't figure out why the following code stops executing after each loop. *When I step through the code it works fine. *When I run it it stops execution is interupted after each loop; if I "continue" it picks up and works fine. * Is there something that needs to follow the PrintPreview (or PrintOut) statement to keep it from interupting? Sub test2() For i = 1 To 3 * *Worksheets(i).PrintPreview Next i End Sub Thanks Ken- Hide quoted text - - Show quoted text - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Print macro Excel 2003 used to work, now crashes | Excel Programming | |||
Print & Print Preview crashes | Excel Programming | |||
Excel crashes on simple procedure | Excel Programming | |||
Simple recorded macro crashes on playback. Why? | Excel Programming | |||
Simple code crashes Excel | Excel Programming |