How to Disable a Word 'Auto' Macro

ID: Q96565

The information in this article applies to:

SUMMARY

To prevent a Microsoft Word for Windows or Macintosh auto macro from running, hold down the SHIFT key when you perform the action

 that triggers the macro. AutoExec, AutoNew, AutoOpen, AutoClose, and
AutoExit are the auto macros in Word.

MORE INFORMATION

When opening a Word for Windows or Macintosh document that is associated with a template that contains an AutoOpen macro, hold down the SHIFT key until the document is completely opened. Depressing the SHIFT key prevents the action that triggers the macro.

When opening a new Word for Windows or Macintosh document based on a template that contains an AutoNew macro, hold down the SHIFT key until the new document is opened.

To prevent a Word for Windows AutoExec macro from executing, do one of the following:

In Word for Windows version 6.0, you can use the following command line to disable the AutoExec macro:

   C:\WINWORD\WINWORD.EXE /mDisableAutoMacros

For more information on disabling an AutoExec macro from executing in Word for the Macintosh, see Q122687 for field specific switches using the ToolsAdvancedSettings WordSwitches option.

REFERENCES

"Microsoft Word for Windows User's Guide," version 2.0, page 786

"Microsoft Word for Windows User's Reference," page 189

Kbcategory: kbusage kbmacro kbhowto KBSubcategory: kbtemplate Additional query words: 1.0 1.10 1.10a 2.0 word6 winword2 2.0a 2.0a-CD 2.0b 2.0c 6.0 AutoExec, AutoNew, AutoOpen, AutoClose, AutoExit winword

Keywords          : kbmacro kbusage kbtemplate kbhowto 
Version           : 1.x 2.x 6.0 6.0a 6.0c
Platform          : WINDOWS

Last Reviewed: August 1, 1997