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 / November 2007

Tip: Looking for answers? Try searching our database.

Retrieve full path to an attached template when path doesn't exist

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Barry Nielsen - 21 Nov 2007 01:13 GMT
Hi there,

We are using Microsoft Office 2000.
Our Workgroup Templates path is going to change, so I need to write a macro
to update the path if appropriate.
I know I can retrieve properties about an attached template using
ActiveDocument.AttachedTemplate.<Property> if the file exists.
I can also get the name of the attached template using
ActiveDocument.BuiltInDocumentProperties(wdPropertyTemplate).

Is there a way to retrieve the value in the Tools ==> Templates and
Add-In... Template field when the path to the template no longer exists.

Regards,

Barry.
Julie - 21 Nov 2007 06:01 GMT
Hi Barry,

If your templates are stored in the root of the new workgroups templates
folder, documents should attach automatically.  If in sub-folders, that's a
different ball game.

Here's what you are looking for.  I trust you can add the rest of what's
needed.  If not, please post back.

   sOldName = Application.Dialogs(wdDialogToolsTemplates).Template

This is Word 2003 Code but I dont' believe any changes were made from the
word2k version.

Regards,
Julie

> Hi there,
>
[quoted text clipped - 13 lines]
>
> Barry.
Barry Nielsen - 21 Nov 2007 06:21 GMT
Hi Julie,

Thanks for your quick reply. Yes, that was EXACTLY what I was looking for.

I'm also intrigued about what you said regarding templates being able to
reattach themselves, so I will explore that, too.

Thanks again.

Barry.

> Hi Barry,
>
[quoted text clipped - 30 lines]
> >
> > Barry.
 
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.