Location of Macros Created in Word for Windows

Last reviewed: July 30, 1997
Article ID: Q86078
The information in this article applies to:
  • Microsoft Word for Windows versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c

SUMMARY

Microsoft Word for Windows macros can be defined with either global or template context. Global macros are stored in a global template (only the NORMAL.DOT file in versions 1.0 and 2.0) and are available from any document window. Template macros are saved with the active template and are available only when the active document is based on that particular template. When you create a macro in a document based on a template other than NORMAL.DOT, you can select either the NORMAL.DOT global template or the template attached to the active document (As Global option button or the In Template option button in versions 1.0 and 2.0) to set the context of your macro. When you create a macro in a document based on NORMAL.DOT, the macro is automatically assigned global context.

If you have created a macro but cannot find it, open the document that was open when you created the macro, and use the appropriate procedure below.

Word for Windows version 6.0

  1. From the Tools menu, choose Macro. Under Macros Available In: select the Normal.dot (Global Template) option.

  2. Look for the macro name in the list of macros. If the macro appears in the list, the macro is a global macro stored in the NORMAL.DOT template.

  3. If the desired macro does not appear in the list, select the template that is attached to the current document under the Macros Available In: list. (A non-global template will only be listed when the current document is based on a template other than NORMAL.DOT). If the macro appears in the list, the macro is a template macro stored in the template that the current document is attached to.

  4. If the desired maro is not listed, select any global templates that may be available under the Macros Available In: list. If the desired macro is not listed, it may reside in a different template file.

Word for Windows version 2.x

  1. From the Tools menu, choose Macro. Under Show, select the Global Macros option button.

  2. Look for the macro name in the list of macros. If the macro appears in the list, the macro is a global macro stored in the NORMAL.DOT template.

  3. If the desired macro does not appear in the list, select the Template Macros option button under Show. (This option button is available only when the current document is based on a template other than NORMAL.DOT). If the desired macro is not listed, it may reside in a different template file.

Word for Windows version 1.x

  1. From the Macro menu, choose Edit. Under Context, select the Global option button. Select the Show All check box.

  2. Look for the macro name in the list of macros. If the macro appears in the list, the macro is a global macro stored in the NORMAL.DOT template.

  3. If the desired macro does not appear in the list, choose the Template option button under Context. (This option button is available only when the current document is based on a template other than NORMAL.DOT). If the desired macro is not listed, it may reside in another template file.

MORE INFORMATION

If the macro was created using the Word for Windows Macro Recorder, it may be identified only by a number (Macro1, Macro2, Macro3, and so forth) unless a specific name was typed in the Record Macro dialog box. Macros created with the Macro Recorder are set to the context selected in the Macro dialog box of Word 6.0, the context selected in the Template dialog box of Word 2.x or to the context selected in the Record Macro dialog box of Word 1.x.

In Word 2.x, you can set the default context for new macros and glossary items by choosing Template from the File menu and selecting one of the following option buttons:

  • Global (Available To All Documents)
  • With Document Template
  • Prompt For Each New

By selecting the appropriate option button, you can save new macros and glossary items with a global or template context, or choose to have Word prompt you for a location whenever a new macro is recorded.

REFERENCES

"Microsoft Word for Windows User's Guide," version 2.0, pages 764-766

Kbcategory: kbusage kbmacro KBSubcategory: kbtemplate


Additional query words: global template 1.0 word6
winword winword2 1.10 1.10a 2.0 2.0a 2.0a-CD 2.0b 2.0c 6.0
Keywords : kbtemplate
Version : 1.x 2.x 6.0 6.0a 6.0c
Platform : WINDOWS


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