XL98: Crash Saving Workbook That Uses BeforeSave Event

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:

Q124809 How to Add/Remove a Single Office for Mac Program or Component

Additional query words: XL98

Keywords : xlgpf xladdins
Version : MACINTOSH:98
Platform : MACINTOSH
Issue type : kbbug


Last Reviewed: November 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.