How to Disable a Word 'Auto' Macro

Last reviewed: July 30, 1997
Article ID: Q96565
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
  • Microsoft Windows operating system versions 3.0 and 3.1
  • Microsoft Word for Macintosh, version 6.x

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" (without the quotations marks) 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

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 : kbhowto kbtemplate kbmacro kbusage
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.