Results 1 to 6 of 6

Thread: Macro performance slow when page breaks are visible in Excel

  1. #1
    Join Date
    May 2009
    Posts
    1,952

    Macro performance slow when page breaks are visible in Excel

    Hi friends,
    I usually work on the Excel and I have observed that when I use the page breaks the performance of an Excel slows down. I have tried to do lot of different things but still the performance slows down after using the page breaks. So I thought to take some suggestions from you guys.!! Please explain me about the Macro performance slow when page breaks are visible in Excel Hope that you understood my problem.!?

  2. #2
    Join Date
    Aug 2006
    Posts
    287

    Re: Macro performance slow when page breaks are visible in Excel

    When you use a Microsoft Visual Basic for Applications (VBA) macro in a later version of Microsoft Excel, the macro will take longer to complete than in earlier versions of Excel. For example, a macro that takes several seconds to complete on an earlier version of Excel may take several minutes to complete in a later version of Excel. Alternatively, if you run a macro a second time, the macro can take twice to run as did the first time.
    Dimension 1100 (FMY032J) mini-tower
    2.53ghz Intel Pentium 4
    80 gig nfts HDD
    512 RAM
    Main circuit board: Dell 0CF458
    BIOS: Dell A00
    Display: Intel(R) 82865G Graphics Controller [Display adaptor]
    Multimedia: Sound MAX Integrated Digital Audio
    Windows XP Home SP2

  3. #3
    Join Date
    Jul 2006
    Posts
    273

    Re: Macro performance slow when page breaks are visible in Excel

    Even I have observed that the performance of a macro slows down after using the page breaks in Excel. And I have concluded that this problem can occur if the following conditions takes place :
    1. The VBA macro changes the properties of many rows or columns.
    2. In Excel 2003 and earlier versions of Excel, select the check box page breaks on the View tab in the Options dialog box.

    Hope that you would get some help from this post.
    (\__/)
    (='.'=) This is Bunny. Copy and paste bunny into your
    (")_(") signatureto help him gain world domination

  4. #4
    Join Date
    Aug 2006
    Posts
    222

    Re: Macro performance slow when page breaks are visible in Excel

    The issue that you have discussed can also occur if you have performed an operation that forces Excel to calculate page breaks. Excel calculates the page breaks when you perform any of the following :
    1. Show a preview of the worksheet.
    2. Click Microsoft Office Excel 2003 and earlier versions of Excel, Page Setup on the File menu. In Microsoft Office Excel 2007, click Page Setup on the toolbar shortcut.
    3. Modify any of the PageSetup object properties in a VBA macro.
    Just a reply to say thank you for these links and posts I have a lot to read and learn now!



  5. #5
    Join Date
    May 2008
    Posts
    353

    Re: Macro performance slow when page breaks are visible in Excel

    In Excel 2003 and earlier versions of Excel, select the check box page breaks on the View tab in the Options dialog box. Whereas in Excel 2007, click the Microsoft Office Button, click Excel Options, click the Advanced category and click to select the Show page breaks in the Display section options for this page. This problem occurs if the macro sets PageSetup any property or if you manually set a property PageSetup and then run a VBA macro that sets properties on a large range of rows or columns. When you set a property PageSetup, automatic calculation of page breaks are enabled in Excel. By default, this property is not set.

  6. #6
    Join Date
    Apr 2008
    Posts
    2,139

    Re: Macro performance slow when page breaks are visible in Excel

    To disable the display of page breaks programmatically, add the following line of code to the VBA macro :
    Code:
    ActiveSheet.DisplayPageBreaks = False
    You will have to keep in mind that you must insert this line of code after modifying any object properties PageSetup, but before you change the properties or rows in the spreadsheet.

Similar Threads

  1. Excel 2003 Macro doesn't work in Excel 2007
    By jjaw in forum Windows Software
    Replies: 3
    Last Post: 03-01-2014, 03:28 PM
  2. How do I get page breaks to show in draft view in word 2010.
    By Harri.Son in forum Windows Software
    Replies: 5
    Last Post: 10-04-2012, 07:03 PM
  3. How to create Page Breaks in Ebooks
    By Echa in forum Ebooks
    Replies: 4
    Last Post: 04-03-2012, 01:15 PM
  4. How to Display page breaks in normal view in Microsoft Excel
    By Kungfu Pandey in forum MS Office Support
    Replies: 2
    Last Post: 14-01-2012, 02:12 PM
  5. Replies: 3
    Last Post: 06-12-2011, 07:57 AM

Tags for this Thread

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
  •  
Page generated in 1,714,065,482.03191 seconds with 16 queries