WD2000: AutoOpen/Document_Open Macro Fails When Document Opened Outside of Word (220533)



The information in this article applies to:

  • Microsoft Word 2000

This article was previously published under Q220533

SYMPTOMS

When you open your document outside of Word--for example, you double-click a document in a folder--and the document contains an AutoOpen macro or contains Visual Basic for Applications commands in the Document_Open event of the document, the macro fails to run as expected.

CAUSE

Your document may be a frames page.

To determine whether your document is a frames page, on the Format menu, point to Frames.

If more than the following default menu items are available, your document is a frames page.

Table of Contents in Frame
New Frames Page

WORKAROUND

To work around this problem, open the frames document from within Word. The AutoOpen macro or Document_Open event works as expected opening the document from within Word.

STATUS

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

MORE INFORMATION

For more information about frames pages, click Microsoft Word Help on the Help menu, type frames page in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.


For additional information about frames pages, please see the following article in the Microsoft Knowledge Base:

220518 WD2000: Frames Page Project Doesn't Appear in VBE


Modification Type:MajorLast Reviewed:5/13/2002
Keywords:kbbug KB220533