DisableAutoMacros Disables Only AutoExec from Command Line |
Q117399
The "Microsoft Word Developer's Kit, First Edition" incorrectly states on page 339 that:
"You can use the following command line to disable all
auto macros, including AutoExec:
winword.exe /mDisableAutoMacros"
This above incorrect information also appears in WordBasic Help.
WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT
YOUR OWN RISK. Microsoft provides this macro code "as is" without
warranty of any kind, either express or implied, including but not
limited to the implied warranties of merchantability and/or fitness
for a particular purpose.
To disable all auto macros for the current session of Word, the
DisableAutoMacros command must be issued from inside a macro. Use the
following macro to accomplish this:
Sub Main
DisableAutoMacros
End Sub
If you name this macro "DisableAuto" (without the quotation marks), you can
use the command line "WINWORD.EXE /mDisableAuto" (without the quotation
marks) to disable all auto macros, including the AutoExec macro, for the
entire Word session.
Q70991 Auto Macros in Word
"Microsoft Word Developer's Kit," version 6.0, page 339
Kbcategory: kbusage kbmacro
Additional query words: 6.0 disableautomacros automatic macros autonew autoopen autoclose autoexit autoexec doesn't docerr doc err word6 documentation error wdk winword
Keywords : kbofficeprog
Issue type :
Technology :
|
Last Reviewed: March 28, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |