Microsoft KB Archive/220533

= WD2000: AutoOpen/Document_Open Macro Fails When Document Opened Outside of Word =

Article ID: 220533

Article Last Modified on 5/13/2002

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



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

Additional query words: vba

Keywords: kbbug kbpending KB220533

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.