XL98: Crash Saving Workbook That Uses BeforeSave Event

Last reviewed: February 3, 1998
Article ID: Q177391
The information in this article applies to:
  • Microsoft Excel 98 Macintosh Edition

SYMPTOMS

When you save a file in Microsoft Excel, you may receive one of the following error messages:

   The application "Microsoft Excel" has unexpectedly quit, because
   an error of type 2 occurred.
   You should save your work in other open applications and
   restart the computer.

   -or-

   The application "Microsoft Excel" has unexpectedly quit, because
   an error of type 1 occurred.
   You should save your work in other open applications and
   restart the computer.

    -or-

   Sorry, a system error occurred.
   "Microsoft Excel" error type 11

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 Microsoft Excel Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q124809
   TITLE     : How to Add/Remove a Single Office for Mac Program or
               Component


Additional query words: XL98
Keywords : xladdins xlgpf
Version : MACINTOSH:98
Platform : MACINTOSH
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: February 3, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.