XL97: Crash Saving Workbook That Uses BeforeSave Event

Last reviewed: March 13, 1998
Article ID: Q177393
The information in this article applies to:
  • Microsoft Excel 97 for Windows

SYMPTOMS

When you save a file in Microsoft Excel, 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

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. 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 using the BeforeSave event, click the Office Assistant in the Visual Basic Editor, type "beforesave," click Search, and then click to view "BeforeSave Event."

NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If the Assistant is not able to answer your query, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q176476
   TITLE     : OFF: Office Assistant Not Answering Visual Basic Questions


Additional query words: XL97 ipf
Keywords : kberrmsg kbprg xladdins xlgpf
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbpending


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