Re: Retrieve full path to an attached template when path doesn't e by BarryNielsen
BarryNielsen
Tue Nov 20 22:21:00 PST 2007
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.
"Julie" wrote:
> 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
>
> "Barry Nielsen" <BarryNielsen@discussions.microsoft.com> wrote in message
> news:9750E81C-8B5A-434D-818D-90029A3C2829@microsoft.com...
> > 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.
> >
> >
>
>
>