XL97: Invalid Page Fault Saving a Workbook or Add-In

Last reviewed: February 27, 1998
Article ID: Q160032
The information in this article applies to:
  • Microsoft Excel 97 for Windows

SYMPTOMS

In Microsoft Excel 97, when you save a workbook, you receive the following error message:

   EXCEL caused an invalid page fault in module EXCEL.EXE at 
   0137:301cd997.

CAUSE

This problem occurs under the following circumstances:

- You type code in the BeforeSave event for the workbook.

  and

- You set the IsAddin property for the workbook to True.

WORKAROUND

To work around this problem, remove the code in the BeforeSave event for the workbook. To do this, use the following steps:

  1. On the File menu, click Open to open the workbook (or add-in).

  2. Press Alt+F11 to view the Visual Basic Editor.

  3. On the View menu, click Project Explorer.

  4. Right-click the ThisWorkbook object for the workbook, and then click View Code.

  5. In the Code window, click Workbook in the Object list and click BeforeSave in the Procedure list.

  6. Delete the code in the Workbook_BeforeSave event procedure.

  7. Save the workbook.

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.


Additional query words: XL97 8.0 8.00 ipf gpf addin
Keywords : kberrmsg kbprg xlvbainfo xlloadsave xl97vbmigrate
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbbug


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: February 27, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.