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/
 
Top