Microsoft KB Archive/177393

= XL97: Crash Saving Workbook That Uses BeforeSave Event =

Article ID: 177393

Article Last Modified on 10/11/2006

-

APPLIES TO


 * Microsoft Excel 97 Standard Edition

-



This article was previously published under Q177393



SYMPTOMS
When you save a Microsoft Excel workbook in Microsoft Visual Basic Editor, you may receive the following error message.

In Microsoft Windows 95
This program has performed an illegal operation and will be shut down.

If the problem persists, contact the program vendor.

If you click Details, you receive an error message similar to the following:

EXCEL caused an invalid page fault in module KERNEL32.DLL at 0137:bff9a290.

In Microsoft Windows NT
Dr. Watson for Windows NT

An Application error has occurred and an application log is being generated.

EXCEL.exe

Exception: Access violation (0xc0000005), Address: 0x301d09b5

NOTE: If another workbook is open, it is saved instead of the workbook that you specified. You will receive no error message.



CAUSE
This problem may occur when using the BeforeSave event if either of the following conditions is true:


 * The IsAddin property of the workbook object returned by ThisWorkbook is set to True. -or-


 * The workbook is hidden.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



MORE INFORMATION
