Cindy
Sun Apr 09 12:32:44 CDT 2006
Hi =?Utf-8?B?VGl0dXMgS3J1c2U=?=,
> I want to create a document from my template! My wish is to run Word from
> the command shell with a previously created template. A macro in this
> template should read data from a given .ini-file and merge this data with
> fields in the new document. Because /t and /m couldn't be used together, I've
> placed an AutoNew-Macro in my template.
>
Word isn't designed to function like this; you can use the web interface to make
a "Suggestion" to Microsoft that you'd like to be able to invoke a macro in a
template when creating a new document from the command line.
/t will not execute AutoNew
/m must be in the Normal.dot template
If you were automating Word's object model, then the AutoNew would execute.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)