Hi Jeremy
No, it's not possible to attach two or more templates to a document at the
same time. The way Word is designed to work (and the way it works best) is
as follows:
1. Create a .dot template that contains the styles, page settings and
content you want in your documents. If you need tools (macros, autotexts,
command bars or keyboard shortcuts) that relate to this kind of document,
put them in the template too.
2. To create a new document, do File > New and select your template. The
document will inherit the styles, page settings and content from the
template. And the template will make available the macros, autotexts,
command bars and keyboard shortcuts in the template.
3. If you need tools that apply to *all* documents, then create a separate
.dot file for them. Save that file in the Word Startup folder (listed at
Tools > Templates and Addins > File Locations > Word Startup), and Word will
load that template as a global template (aka add-in) every time Word opens.
For more information, see
What is the relationship between a Word document and its template?
http://www.ShaunaKelly.com/word/templaterelations/index.html
and
What happens when I attach a new template to my document? or How do I copy
content and settings from a template to a document?"
http://www.ShaunaKelly.com/word/attachtemplate/index.html
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
> Hi Shauna
>
[quoted text clipped - 77 lines]
>> >
>> > Jeremy
jgugenheim - 31 Aug 2007 17:22 GMT
Hi Shauna
Wow!
Thanks for all that. The reason (I think, as it was done by my predecessor)
that things were done this way with a separate tempate file was because the
department writes several books, updated and republished and different
intervals and they each have a different corporate style. I will therefore
try to continue with a similar separate template approach, but using what you
have shown me.
Many thanks,
Jeremy
> Hi Jeremy
>
[quoted text clipped - 113 lines]
> >> >
> >> > Jeremy
jgugenheim - 11 Sep 2007 16:28 GMT
Hi Shauna
Just thought I'd let you know how this resolved.
I used the following code to atttach my template, update my styles, and then
return to Normal.dot. It is so fast that I initially thought it wasn't doing
anything, but it does exactly what I want.
'============
ActiveDocument.AttachedTemplate = "C:\....\Template.dot"
ActiveDocument.UpdateStyles
ActiveDocument.AttachedTemplate = NormalTemplate
'============
Thank you very much for pointing me in the right direction, your help is
much appreciated.
Jeremy
> Hi Jeremy
>
[quoted text clipped - 113 lines]
> >> >
> >> > Jeremy
src - 20 Sep 2007 18:06 GMT
Seems like you wouldn't even have to switch back and forth, simply
copy styles from another template to the active document.
Sub CopyStylesToCurrentDoc()
ActiveDocument.CopyStylesFromTemplate _
Template:="C:\Templates\junk.dot"
End Sub
On Sep 11, 9:28 am, jgugenheim <jgugenh...@discussions.microsoft.com>
wrote:
> Hi Shauna
>
[quoted text clipped - 14 lines]
>
> Jeremy