Article ID: 145598 - View products that this article applies to.
This article was previously published under Q145598
This article has been archived. It is offered "as is" and will no longer be updated.
When you run a Visual Basic for Applications macro in Microsoft Excel 97, the macro may take longer to complete than it does in earlier versions of Excel. For example, a macro that required several seconds to complete in an earlier version of Excel may require several minutes to complete in Microsoft Excel 97.
This problem may occur if the following conditions are true:
To work around the problem, use either of the following methods.
Method 1: Manually Turn Off the Display of Page BreaksTo manually turn off the display of page breaks, follow these steps:
Method 2: Turn Off the Display of Page Breaks in Your MacroMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. To work around the problem, add the following line of code to your Visual Basic macro:
ActiveSheet.DisplayPageBreaks = FalseNOTE: This line of code must be inserted after you modify any of the properties of the PageSetup object, but before you modify the properties or the rows on your worksheet.
For more information about this problem, please see the following article in the Microsoft Knowledge Base:
164919For more information about worksheet properties, please see the following article in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/164919/EN-US/ )XL97: Scrolling Through Worksheet Causes MS Excel to Pause
(https://support.microsoft.com/kb/169106/EN-US/ )XL97: Some Worksheet Properties not Preserved
Article ID: 145598 - Last Review: January 11, 2015 - Revision: 2.0