Microsoft KB Archive/68490

Starting Documents and Multiple Macros Automatically PSS ID Number: Q68490 Article last modified on 08-25-1993

1.00 1.10 1.10a 2.00 2.00a 2.00a-CD 2.00b 2.00c

WINDOWS

Summary:

From the DOS prompt, the Windows Run command, or an Icon property, you can have Word for Windows open documents and run macros automatically. To start multiple macros in Word for Windows, you must place the /m switch before the name of the macro.

Example:

winword /mmacro1 documentname1 /mmacro2 /mmacro3 documentname2

Word for Windows will open the documents FIRST, then run the macros. The result is:

Document1, Document2, macro1 macro2 macro3

If one of the macros types text or inserts graphics, the text will be inserted at the top of the last document opened. The .DOC extension is not necessary.

Reference(s):

“Microsoft Word for Windows User’s Reference,” page 337.

Additional reference words: w4wmacro startup switches parameter

=
================================================================

Copyright Microsoft Corporation 1993.