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.
Helmut Weber - 06 Mar 2005 01:35 GMT
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/
Jezebel - 06 Mar 2005 01:37 GMT
ActiveDocument.AttachedTemplate.FullName
> 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.