Article ID: 160032 - Last Review: October 20, 2000 - Revision: 1.0

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

This article was previously published under Q160032
Expand all | Collapse all

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, follow these 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.

APPLIES TO
  • Microsoft Excel 97 Standard Edition
Keywords: 
kbbug kberrmsg kbpending kbprogramming KB160032
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations