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

B

Barry Nielsen

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.
 
J

Julie

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
 
B

Barry Nielsen

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.
 

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