View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Rob Bovey Rob Bovey is offline
external usenet poster
 
Posts: 811
Default PrintPreview slows Code Execution

"Don Lloyd" wrote in message
...
I have a workbook which contains some fairly complex subs but they run
fast enough for normal needs. However, after running a small sub that just
sets the PrintArea and does a PrintPreview , code execution becomes
exceeedingly slow.


Hi Don,

Try setting Worksheets("MySheet").DisplayPageBreaks = False for all
worksheets affected. This stops Excel from recalculating the page breaks
each time you do something that changes them and can improve performance in
some cases.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm