Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

How To Get Path of Template?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wjgmail@mailinator.com - 06 Mar 2005 01:04 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.