XL: Closing Excel from Workbook Control Menu Causes GP Fault

ID: Q131166


The information in this article applies to:
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for Windows NT, version 5.0
  • Microsoft Excel for Windows 95, version 7.0


SYMPTOMS

In Microsoft Excel, the workbook control menu and the Restore button on the document menu bar may display even when there are no workbooks currently visible. If you try to close the document window by using the workbook control menu (next to the File menu), you may receive a general protection (GP) fault similar to the following:

Excel caused a General Protection Fault in module
EXCEL.EXE at 003C:0582


CAUSE

This problem may occur when the following conditions are true:

  • There are no workbook windows visible.


  • -and-

  • The last visible window was maximized or Microsoft Excel was started by double-clicking a file in File Manager or Microsoft Excel was started without the default workbook.


-and-
  • A macro, such as an Auto_Open macro, uses the Windows object.


  • -and-

  • No new workbook windows are visible.


NOTE: These conditions are most easily met by an Add-in file.


WORKAROUND

To work around this problem, use any of the following methods.

Method 1: Use the Workbooks object instead of the Windows object.

Method 2: Open another workbook to create a new workbook window instead of clicking any of the document window controls while no workbooks are open.

Method 3: After you receive this error message, you can choose the IGNORE button and continue working (not recommended).


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.

Additional query words: ipf gpf

Keywords : kbcode kbprg xlwin
Version : WINDOWS:5.0,5.0c,7.0; winnt:5.0
Platform : WINDOWS winnt
Issue type :


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