XL2000: Invalid Page Fault When Macro Closes Its Own Workbook

ID: Q213656


The information in this article applies to:
  • Microsoft Excel 2000


SYMPTOMS

In Microsoft Excel, if a Microsoft Visual Basic for Applications procedure is started by an OnSheetDeactivate command and the procedure then closes the workbook in which it is contained, you may receive the following error message:

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 EXCEL.EXE at 015f:3003f7c7.


CAUSE

This behavior occurs only if you delete a sheet by clicking Delete Sheet on the Edit menu, or Delete on the sheet tab's shortcut menu; it does not occur if you deactivate a sheet by switching to another sheet.


STATUS

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

Additional query words: crash crashes crashing crashed quit quitting quits fail fails failing failed break hang freeze stops responding XL2000

Keywords : kbprg kbdta PgmOthr KbVBA
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug


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