I don't have an answer, but I think he's looking for stuff like this:
3 Add a startup switch to the end of the path.
To start Word and prevent add-ins and global templates (including the Normal
template) from being loaded automatically, type /a
This switch also prevents setting files from being read or modified.
To start Word and then load a specific Word add-in, type /l addinpath
To start Word without running any AutoExec macros, type /m
To start Word and then run a specific macro, type /mmacroname
This switch also prevents Word from running any AutoExec macros.
To start Word without opening a specific document, type /n
To start Word and then open a document as a template, type /t followed by a
space and the name of the document.
Quote:
> Hi David,
> Well, Word doesn't accept parameters in the command line, so maybe you need to
> rethink your approach?
> > how can I get the command line argument in a VBA script used when opening a
> > word document.
> > Let say I open a document using: winword.exe mydoc.doc param1 param2
> > Is it possible to retrieve the string "param1 param2" in the Document_Open()
> > sub?
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister
> http://go.compuserve.com/MSOfficeForum
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
--
Dave Peterson