OFF2000: Program Shuts Down After Referencing Document (217724)



The information in this article applies to:

  • Microsoft Excel 2000
  • Microsoft Word 2000

This article was previously published under Q217724

SYMPTOMS

When you try to create a reference in Microsoft Visual Basic, one of the following problems occurs depending on the program you are running.

Microsoft Word

The following error message appears:
This program has performed an illegal operation and will be shut down.

If the problem persists, contact the program vendor.
If you click Details, an error message similar to the following appears:
Winword caused an invalid page fault in module Mso9.dll at 015f:308c9c03.
When you click Close, the program shuts down.

Microsoft Excel

The following error message appears:
Can't quit at this time.
When you click OK, the program shuts down.

CAUSE

This problem occurs in the Office programs listed at the beginning of this article when you follow these steps:
  1. Open a document that contains Visual Basic macros and click Disable Macros.
  2. Attempt to create a reference to another Office document using the References dialog box in Microsoft Visual Basic.
  3. Click Disable Macros for the new document.
  4. Close the Office program.

WORKAROUND

In order to create a reference from one Office document to another, you need to enable macros in the host document. To enable macros, when you open the document, click Enable Macros instead of Disable Macros. If you do not see this option when opening your files, follow these steps to change the macro security:
  1. On the Tools menu, point to Macro and click Security.
  2. In the Security dialog box, click Medium and click OK.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbbug kberrmsg kbpending KB217724