How To Get Path of Template?

W

wjgmail

When opening a new document from a template(dot) file, I'd like VBA
script in the new document to get the path of the template file the new
doc is based on. Any suggestions how?

The template is _not_ located in the standard templates directory.
 
H

Helmut Weber

Hi,

like this:

MsgBox ActiveDocument.AttachedTemplate.Path

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
 

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