K_H Posted August 13, 2004 Report Share Posted August 13, 2004 I am trying to write a very simple macro to open up a word document from a word template. I can do a program launch on the ".dot" file, but it opens the template file instead of using the template to open a ".doc". When I double click on the word template, it opens up the way I expect. How do I replicate this in ME? Thanks in Advance. Quote Link to comment Share on other sites More sharing options...
joe Posted August 13, 2004 Report Share Posted August 13, 2004 Hello K_H! It sounds like you are wanting to create, or open, a .doc document and have it based on a particular .dot template. Clicking on the Word template (as you say) does this. But of course Word is already launched with the normal.dot template. Here is a link to an earlier topic that covered how to use Macro Express to launch Word along with a specified .dot template. Hope this helps! Quote Link to comment Share on other sites More sharing options...
K_H Posted August 13, 2004 Author Report Share Posted August 13, 2004 That worked perfectly. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
Bernd.Frisch Posted August 15, 2004 Report Share Posted August 15, 2004 Thanks, Joe for this good parameter, which I had to modify just a little bit, as my fax and letter templates path have been changed in Word|Options to D:\Templates (to allow a format c:\ and new install of XP without loosing my templates). <LAUNCHNO3:0:0112Microsoft Word<LAUNCH:C:\Programs\Microsoft Office\Office\WINWORD.EXE<PARAM>"/td:\Templates\1Fax.dot"><REM2:Faxemlate 1Fax.dot (with company-logo)><WAITWIN2:000010:000000:Dokument><MSD:60><LCLK> Quote Link to comment Share on other sites More sharing options...
joe Posted August 16, 2004 Report Share Posted August 16, 2004 You are perfectly welcome! The sample was just a template that was meant to be changed it at will. Glad it worked out for you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.