Charles
Tue Jan 27 19:48:41 CST 2004
Thanks for the tip, Peter. I hadn't known that you could get to the original
template that way. This info may become helpful in the future for me as
several of my procedures are attaching documents to different templates upon
creation.
--
Charles Kenyon
See the MVP FAQ: <URL:
http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
"Peter Hewett" <Nospam@xtra.co.nz> wrote in message
news:Xns947E860C0D3A0Iwlpth@207.46.248.16...
> Hi Charles
>
> Yeah you're right "ActiveDocument.AttachedTemplate.Name" always gives you
the
> name of the attached template, irrespective of the template actually used
to
> create the document. However, "Dialogs(wdDialogToolsTemplates).Template"
> always returns the name of the template used to create the document,
> irrespective of whether it's the attached template or not. If the
> ActiveDocument is actually a templae then "Dialogs
> (wdDialogToolsTemplates).Template" will return a null string.
>
> Cheers - Peter
>
>
>
> "Charles Kenyon" <msnewsgroup@remove.no.spam.addbalance.com> wrote in
news:
> #eRN$#S5DHA.2344@TK2MSFTNGP09.phx.gbl:
>
> > If a template can't be found by a Word document, it will reattach itself
to
> > the normal.dot template. This can happen if servers are changed or files
> > moved.
> >
> > Have you tried ActiveDocument.AttachedTemplate.Name or
> > ActiveDocument.AttachedTemplate.FullName?
> >
> > These will give the name or name and path with the .dot extension. Don't
> > know if there is a speed differential, none that I noticed.
> >
>