How to Disable a Word 'Auto' Macro

ID: 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, "C:\WINWORD\WINWORD.EXE /m").

    -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.


REFERENCES

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

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

Additional query words: 1.10a 2.0 word6 winword2 6.0 AutoExec, AutoNew, AutoOpen, AutoClose, AutoExit winword

Keywords : kbmacro kbusage kbtemplate kbhowto
Version : MACINTOSH:6.0,6.0.1,6.0.1a; WINDOWS:1.1,1.1a,2.0,2.0a,2.0a-CD,2.0b,2.0c,3.0,3.1,6.0,6.0a,6.0c
Platform : MACINTOSH WINDOWS
Issue type :


Last Reviewed: September 21, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.