Closing Excel from Workbook Control Menu Causes GP Fault (131166)
The information in this article applies to:
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 5.0c
- Microsoft Excel for Windows NT 5.0
This article was previously published under Q131166 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.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbcode kbProgramming KB131166 |
---|
|