Visual Basic Macro Execution

D

Darryl Major

I would like to automatically execute a Visual Basic macro
automatically on startup of MS Word. Help available from
within Word indicates that one way to do this is to use a
switch, "/m", in the pathname locating the Winword
executable. I have not been able to get it to work for me.

Any help would be appreciated.
 
G

Graham Mayor

Darryl said:
I would like to automatically execute a Visual Basic macro
automatically on startup of MS Word. Help available from
within Word indicates that one way to do this is to use a
switch, "/m", in the pathname locating the Winword
executable. I have not been able to get it to work for me.

Any help would be appreciated.

You could call the macro AutoExec and it will run on starting Word
or you can use the switch

Winword /mMacroname - though you will probably have to address it in full if
you are creating a shortcut ie
(for Word 2002)

"C:\Program Files\Microsoft Office\Office10\WINWORD.EXE" "/mMacroName"

It will also need to be a macro that doesn't require the initial document
open.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail [email protected]
Web site www.gmayor.dsl.pipex.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 
Top