Shell winword

M

Maga Circe

I use as400 macros for creating arecordset to join with doucment template.

At the end of the macro i can use the command
autSystem.Shell "Winword.exe", filename.dot

But how i can i open with statement SHELL to open new template and not the
file.dot?
 
H

Helmut Weber

See:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q210565

/ttemplatename

Starts Word with a new document based on a template other than the
Normal template.

autSystem.Shell "Winword.exe", /tfilename.dot

for me here and now it looks like this,
from the cmd-shell

c:\prg\mso2003\office11\winword.exe /tc:\edit2003\company.dot

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top