Tony
Sat Feb 23 23:40:57 PST 2008
But note that if just the path is changing and the new template name is the
same as the old name, this won't work, and you will need to do it a
different way:
With Application.Dialogs(wdDialogToolsTemplates)
.Template = "C:\Templates\Letter.dot"
.Execute
End With
--
Enjoy,
Tony
"Jay Freedman" <jay.freedman@verizon.net> wrote in message
news:fcmtr3dm0t2cljj3nrru7s8jkhvh92bh5l@4ax.com...
> On Fri, 22 Feb 2008 04:56:07 -0800 (PST), alanmurphy@gmail.com wrote:
>
>>Hi,
>>
>>Does anybody know how to change an MS Word document's assigned
>>template, preferably before the document opens? DSOFile.dll can't do
>>it, and I'm not sure what else that leaves?
>>
>>Any and all pearls of wisdom welcomed and appreciated,
>>
>>Cheers,
>>Al
>
> It isn't possible to change it without opening the document first.
>
> Once it is open, assign the AttachedTemplate property:
>
> ActiveDocument.AttachedTemplate = "C:\Templates\Letter.dot"
>
> --
> Regards,
> Jay Freedman
> Microsoft Word MVP FAQ:
http://word.mvps.org
> Email cannot be acknowledged; please post all follow-ups to the newsgroup
> so all may benefit.