Open Word Template

  • Thread starter Thread starter TAM
  • Start date Start date
T

TAM

Within Excel I am trying to open a new document from a Word template file
but the template file itself keeps opening. Can you please advise how to
open a document from the template - my code is as follows...

Dim wdApp As Word.Application
Set wdApp = New Word.Application
With wdApp
.Documents.Open Filename:="C:\My Documents\Work\Manual Project\Templates\01
Front Cover.dot"

I have tried this code with the .doc extension but that only results in an
error

Thanks

TAM
 
Why not go to word and turn on the macro recorder, then execute the action
you want and turn it off. Look at the recorded code to see how Word sets up
the command.
 

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

Back
Top