Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ken Ken is offline
external usenet poster
 
Posts: 207
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.programming
Ken Ken is offline
external usenet poster
 
Posts: 207
Default 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
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
Print macro Excel 2003 used to work, now crashes Kate[_5_] Excel Programming 1 June 18th 08 07:34 PM
Print & Print Preview crashes Marion[_2_] Excel Programming 3 March 17th 08 09:02 PM
Excel crashes on simple procedure Daves_Solutions[_2_] Excel Programming 6 June 14th 06 06:05 AM
Simple recorded macro crashes on playback. Why? Paul Excel Programming 1 November 9th 05 07:58 PM
Simple code crashes Excel John[_60_] Excel Programming 1 October 27th 04 05:59 PM


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