View Single Post
 
Old 03-12-2019, 07:41 PM
Charles Kenyon Charles Kenyon is offline Windows 10 Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

I agree with the previous poster in all particulars. When a Word document opens, it will search for its template in at least three locations.
Which template is attached if there are multiple templates with the same name


I use a macro to attach my documents to my normal template when they are created from custom templates.


Code:
Sub AttachNormalTemplate() ' attaches Normal template
'   Written by Charles Kyle Kenyon on December 1, 2011
'
    Dim sTemplatesPath As String
    Let sTemplatesPath = Application.Options.DefaultFilePath(wdUserTemplatesPath)
    With ActiveDocument
        Let .UpdateStylesOnOpen = False
        Let .AttachedTemplate = sTemplatesPath & "\Normal.dotm"
    End With
End Sub
It has worked in every ribbon version of Word to date. I had an earlier version that attached to Normal.dot instead.
Reply With Quote