Microsoft KB Archive/160032

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

Article ID: 160032

Article Last Modified on 10/20/2000

-

APPLIES TO


 * Microsoft Excel 97 Standard Edition

-



This article was previously published under Q160032





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.

Additional query words: XL97 8.0 8.00 ipf gpf addin

Keywords: kberrmsg kbbug kbprogramming kbpending KB160032

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.