WD97: Can't View Embedded Control Event CodeLast reviewed: February 11, 1998Article ID: Q167386 |
The information in this article applies to:
SYMPTOMSWhen you enter design mode to view the code for a control in a new document based on a template that contains the embedded control (for example a Command button), the Visual Basic for Applications code appears to be missing.
CAUSEIn Word 97, documents and templates have their own Visual Basic for Applications projects: a document project and a template project. When you create a new document based on a template that contains a control, you create a new "document" project. Because the control has been embedded in the template, the code you create for the control event resides within the template project. When you attempt to view the code for a control after you create a new document based on a template, you will only see the procedures for the document project. Since the code for the control is stored in the template project, you do not see the Visual Basic for Applications control code as expected.
WORKAROUNDTo view the code for the control, use the following steps:
|
Additional query words: 8.0 8.0 vb vbe vba lost invisible see
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |