
AutoNew fails to execute from command line
Hi Kurt,
Quote:
> WshShell.Run "winword.exe /tu:\documents\templates\test.dot"
> The script executes Word and loads the template accordingly. However the
> AutoNew event never fires. Neither does AutoOpen. It doesn't work from a
> command line either.
That is correct. AutoNew macros and the New event are not fired when you
create a new document using the /t switch from a commmand line. This is
documented in KB article Q181783. The solution they give there is to OPEN
the template and run a macro that creates a new document from the
template.
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 :-)