XL: Microsoft Excel Hangs If Macro Contains PageBreak Property

Last reviewed: September 2, 1997
Article ID: Q134409
The information in this article applies to:
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for Windows NT, version 5.0
  • Microsoft Excel for Windows 95, version 7.0

SYMPTOMS

In Microsoft Excel, when you run a macro that contains the PageBreak property, you may receive a general protection (GP) fault or an application error.

CAUSE

This problem occurs if you run a macro that contains the PageBreak property if you do not have a printer installed on your computer. The PageBreak property returns or sets the location of a page break on your worksheet. However, if you use the PageBreak property in a macro when you do not have a printer installed, you receive a GP fault.

Note that Microsoft Excel uses the installed printer to determine where a page break is located or needs to be inserted on a worksheet.

RESOLUTION

To avoid this problem, install a printer on your computer. For more information about installing a printer under Windows or Windows NT, see your printed documentation or online Help.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

REFERENCES

For more information about "PageBreak Property," choose the Search button in Visual Basic Reference Help, and type:

   PageBreak Property


Additional query words: 7.00 7.00 gpf crash print hang
Keywords : kbprg PgmOthr kbcode
Version : 5.00 5.00c 7.00
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.