Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening Word document from Access

Status
Not open for further replies.

BCarruth

Programmer
Feb 8, 2001
19
US
I would like to be able open up a word document using a particular template. I don't know how to specify which template to use.

Thanks Bob
 
Do you mean you want to specify a template when you create a new document? You do that with an argument to the Documents.Add method call that creates the document:
Set docMyDocument = wrd.Documents.Add Template:="template name"

If you really mean you want to open an existing document with a specific template, you can't. You can change its template, though. You do that by setting the AttachedTemplate property of the Document object to the name of the new template:
MyDoc.AttachedTemplate = "Normal"
The change will only be temporary, unless you save the document after you change it. Rick Sprague
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top