Microsoft KB Archive/96565

{|
 * width="100%"|

How to Disable a Word 'Auto' Macro

 * }

Q96565

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c
 * Microsoft Windows versions 3.0, 3.1
 * Microsoft Word for the Macintosh, versions 6.0, 6.0.1, 6.0.1a

-

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:


 * At the command prompt, type win winword /m and press ENTER.

-or-
 * Select the Word for Windows program icon in Program Manager. From the File menu, choose Properties. Add the /m switch to the current command line parameter (for example, &quot;C:\WINWORD\WINWORD.EXE /m&quot;).

-or-
 * Press and hold down the SHIFT key while double-clicking the Word for Windows program icon.

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.