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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting template properties into a document 1

Status
Not open for further replies.

colin81

Technical User
Jul 22, 2002
77
GB
Hi

I need to insert template details into a document which is based on a template i.e. the templates filename and path. I have at present found a way to insert the name which is

ActiveDocument.BuiltInDocumentProperties (wdPropertyTemplate).Value

Using the above only inserts the name, how do i display the template details i.e. filename and path

Any help would be greatly appreciated
Thanks for reading
Colin
 
Hi Colin,

Have a look at the properties of the template:

Code:
ActiveDocument.AttachedTemplate.Name
and
Code:
ActiveDocument.AttachedTemplate.Path

Enjoy,
Tony
 
Hi Tony

Thanks for your help, thats worked straight away

Cheers
Colin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top