I have a document with an attached template. When the document is moved to a
different computer at home the template is in a different path.
The UI (Tools>Templates and AddIns) shows the original template and path.
Clicking Organizer gives the error "This document template does not exist"
so Word is aware of the original template name.

ActiveDocument.AttachedTemplate returns Normal.dot.

Is there a way of getting the orignal template name?

Regards
John Yarrall

Re: Template no longer available by Cindy

Cindy
Thu Dec 04 04:46:41 CST 2003

Hi John,

> I have a document with an attached template. When the document is moved to a
> different computer at home the template is in a different path.
> The UI (Tools>Templates and AddIns) shows the original template and path.
> Clicking Organizer gives the error "This document template does not exist"
> so Word is aware of the original template name.
>
> ActiveDocument.AttachedTemplate returns Normal.dot.
>
> Is there a way of getting the orignal template name?
>
Note that this works in relation to the currently active document, you can't
do it for just any document that's open in Word.

Dialogs(wdDialogToolsTemplates).Template

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)


Re: Template no longer available by John

John
Thu Dec 04 19:32:11 CST 2003

Thanks Cindy

I must get more familiar with the builtin dialog objects.

John Yarrall


"Cindy M -WordMVP-" <C.Meister-C@hispeed.ch> wrote in message
news:VA.00008d79.0038cf46@speedy...
> Hi John,
>
> > I have a document with an attached template. When the document is moved
to a
> > different computer at home the template is in a different path.
> > The UI (Tools>Templates and AddIns) shows the original template and
path.
> > Clicking Organizer gives the error "This document template does not
exist"
> > so Word is aware of the original template name.
> >
> > ActiveDocument.AttachedTemplate returns Normal.dot.
> >
> > Is there a way of getting the orignal template name?
> >
> Note that this works in relation to the currently active document, you
can't
> do it for just any document that's open in Word.
>
> Dialogs(wdDialogToolsTemplates).Template
>
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
> http://www.mvps.org/word
>
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
>