+ Reply to Thread
Results 1 to 4 of 4

How to prevent "Print Preview" from slowing down your macros after viewing Print Preview

  1. #1
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    269

    How to prevent "Print Preview" from slowing down your macros after viewing Print Preview

    Question, I have a macro that runs fast, about 7 seconds the first time I run it after I open the file. The macro runs from a button I push and runs fast and fresh the first time. The second time I run it, it takes about a minute. Just wondering what things usually cause that, is something being held in memory? I know that is not a lot of info, but just wondering if there is some code that fixes this, or is there a common reason for it that one of you might be able to suggest.
    Last edited by caliskier; 02-06-2014 at 02:10 PM.

  2. #2
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    269

    Re: Macro runs slow the second time I run it

    Update... I noticed I can run it several times no problem, but when I go in and check printpreview, and then later run the macro after comming back out of print preview it slows down. So it is the act of going into print preview that is causing this problem. The only way to speed it back up after that is to close it out and reopen. Any ideas there?

  3. #3
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    269

    Re: Macro runs slow the second time I run it

    Solved... This might help someone.... Found this on another site..
    Page breaks can certainly slow down macros, because each time
    you insert/delete/hide/unhide a row you will force Excel to recalculate those
    breaks.

    To eliminate these calculated page breaks
    Tools, Options, View, uncheck "Page Breaks" or in a macro
    ActiveSheet.DisplayPageBreaks = False

  4. #4
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    269

    Re: How to prevent "Print Preview" from slowing down your macros after viewing Print Previ

    I would like to add one more point for anyone this might help, the thing that is really fixing this for me is to go into File>options>advanced> Display Options for this Worksheet. Now uncheck "Show Page Breaks". Doing this is the only thing that worked for me. The instructions above are for excel 2003

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Macro with calendar runs slow
    By pezalmendra in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-27-2013, 01:02 PM
  2. Excel2003 Macro runs slow???
    By Infinity in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2006, 01:55 AM
  3. After printing, macro runs slow???
    By Infinity in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2006, 10:38 PM
  4. [SOLVED] Macro runs slow
    By Sandy in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-20-2005, 12:05 PM
  5. macro runs slow
    By nanomiter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-11-2005, 01:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1