XL: Closing Excel from Workbook Control Menu Causes GP Fault

Last reviewed: September 3, 1997
Article 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 PgmOthr xlwin
Version : 5.0 5.0c 7.0
Platform : WINDOWS
Issue type : kberrmsg
Solution Type : kbcode


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