OFF97: Error Closing MS Word Document Containing Worksheet

Last reviewed: August 6, 1997
Article ID: Q172413
The information in this article applies to:
  • Microsoft Excel 97 for Windows, Service Release 1
  • Microsoft Word 97 for Windows, Service Release 1

SYMPTOMS

In Microsoft Word 97 Service Release 1 (SR-1), when you close a document that contains an embedded Microsoft Excel 97 worksheet object, 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 KERNEL32.DLL at
   0137:bff9a5d0.

CAUSE

This problem may occur if the following conditions are true:

  • The Microsoft Excel 97 worksheet object is still active when you close the Microsoft Word document.

    -and-

  • You close the Microsoft Word document by pressing CTRL+F4.

RESOLUTION

To resolve this problem, use any of the following methods to close a Microsoft Word document that contains an embedded Microsoft Excel 97 worksheet object:

  • On the File menu, click Close.

    -or-

  • Click the Close button (the button with an "X"), located at the upper- right corner of the Microsoft Word document window.

    -or-

  • Deactivate the Microsoft Excel 97 worksheet by pressing ESC or by clicking anywhere in the Microsoft Word document. Then, close the document by pressing CTRL+F4.

If you quit Microsoft Word 97 SR-1 by pressing ALT+F4, by clicking Exit on the File menu, or by clicking the Close button at the upper-right corner of the Microsoft Word 97 program window, the problem does not occur.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Word 97 Service Release 1. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

NOTE: This problem does not occur in the original version of Microsoft Word 97.

MORE INFORMATION

When you close a Microsoft Word document by pressing CTRL+F4, if you click Yes when you are prompted to save changes to the document, the changes are correctly saved even if the problem occurs. The invalid page fault occurs after you save or close the document that contains the Microsoft Excel worksheet object.


Additional query words: XL97 WD97 ipf sr1 gpg
Keywords : OffInterop xlloadsave kbinterop kbole
Version : WINDOWS:SR1
Issue type : kbbug
Solution Type : kbworkaround


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