The attached template of a Word document: the path to a .dotx or .dotm that the file keeps, and what it says about where it was made
Last updated: 28 October 2026
Short answer: a Word document can keep two records of its template. One is the template's name, a document property. The other is the attached template: a link to the template file, which can hold its full path, such as a folder under C:\Users\user name, a server and share, or a folder named after a client. Clearing the properties takes out the name (Document Inspector lists "Template name" among what it removes, and ScrubDrop's free version removes it) and leaves the link. If the template is a macro-enabled .dotm, the path says so; the template's macros are not in the .docx, but they are in the template the path points to. Read the path in a copy of the file, and attach a template kept in a neutral place before you send it.
The template's name and the other properties are in Word document properties, and links to other files in general are in custom XML, embedded objects and template paths. What a template from a previous job brings with it besides the path, such as logos and style names, is in reusing an old template. This page is about the attached template itself: what the file records, what Word does with it, and how to change it.
Two records of a template
The file format standard, ISO/IEC 29500-1 (1st edition), as quoted on Microsoft's Open XML SDK pages, defines both.
| Record | What the standard says | Where it is in the .docx |
|---|---|---|
| Template name (a property) | "the name of an external document template containing format and style information used to create the current document" | Template in docProps/app.xml |
| Attached template | "the location of a document template which shall be attached to the current WordprocessingML document if it is accessible and of a format supported by an application" | w:attachedTemplate in word/settings.xml, pointing at a relationship in word/, whose Target is the path |
| Update styles from the template | "styles in the given document shall be updated to match the styles in the attached template … when the document is opened by a hosting application" | w:linkStyles in word/settings.xml |
The quotations are from the SDK pages Template, AttachedTemplate and LinkStyles. The AttachedTemplate page adds that the element "contains the ID of the relationship which references the associated template", and that if it is left out, "applications should use their default template in its place". The name and the link are kept in different parts of the file, so removing one does not by itself remove the other.
What the path can say
A path names the folders on the way to the template, and folders are often named after people, teams and clients. Microsoft's page Change the Normal template (Normal.dotm) gives the Normal template's folder on Windows as C:\, and its page Create a template says Word on a Mac saves templates in / unless you choose another location. A template kept in a folder like these has the user name of whoever saved it in its path. A template on a network share has the server and share names instead, and a folder such as \\server\ names the client.
The path does not prove where a document came from: it says where the template was when it was attached. It can still tell a reader the name of a colleague, the name of an internal server, or that the document began in another client's folder.
A .dotm: macros in the template, not in the document
Microsoft's page Load or unload a template or add-in program says that "Templates can store styles, AutoText entries, AutoCorrect entries, macros, toolbars, custom menu settings, and shortcut keys". A template saved as .dotm can hold macros. A .docx attached to one does not contain those macros: it contains the path of the template, which ends in .dotm. To the reader, that path says that the document was made with a macro template, what it is called and where it was kept, and a name such as ClientLetters.dotm can say as much as the folder does.
The standard says the template is attached "if it is accessible". On a computer that can reach the path, such as a colleague's on the same network, the template is attached again. Templates can store macros, AutoText entries and more, as quoted above, and Microsoft's macro reference shows code reaching the AutoText entries of a document's attached template (Document.AttachedTemplate). Whether and when a template's macros run then depends on the recipient's Word and its macro settings, which the pages cited here do not describe. On a computer that cannot reach the path, the document has the path but not the template; we found no Microsoft page that describes what Word shows in that case, so this page does not describe it.
Updating styles from the template
The w:linkStyles setting asks Word to copy the template's styles into the document each time it is opened. The standard adds: "If the attached template cannot be located or is not a valid file, then this setting should be silently ignored." For a recipient who can reach the same path, a colleague or someone on a shared server, opening the document can change its styles to match the template as it is then. The standard does not say what the setting does when there is no attached template at all: the AttachedTemplate page says applications should then "use their default template in its place", and the LinkStyles page says the setting should be ignored when the template cannot be located. So if the attached template is taken out, turn the setting off too. If the formatting must stay as you sent it, turn the setting off before you send.
What Document Inspector covers
Microsoft's page Remove hidden data and personal information by inspecting documents, presentations, or workbooks lists "Template name" among what the Document Properties and Personal Information inspector removes in Word. The list does not mention the attached template's path or the update-styles setting. After running it, check word/ in a copy (below) rather than assume either way.
Change the attached template in Word
- Work on a copy made for sending.
- Read the path in a copy of the file (below), or with the macro example under these steps.
- If the path names a person, a client or a server, attach a template kept outside your user folder, for example in
C:\Templates, the folder Microsoft's macro reference uses in its example. A folder underC:\Users\user nameputs the user name back in the path. In Word for Windows, the dialog that Microsoft's page Load or unload a template or add-in program opens (File › Options › Add-Ins, Word Add-ins in the Manage list, Go) is the dialog Microsoft describes for templates; that page describes only the global templates on its Templates tab, so check the result in a copy. - Turn off the setting that updates the document's styles from the template unless you want it (the standard calls it "Automatically Update Styles From Document Template").
- Save, and check a copy of the file again as below.
Microsoft's macro reference also shows how to read and change it. Its page Document.AttachedTemplate property (Word) has an example that "displays the name and path of the template attached to the active document", and one that "attaches the template" given by its path. Global templates and add-ins that you load under File › Options › Add-Ins are a setting of your copy of Word; Microsoft's page on loading them says such a template "remains loaded for the current Word session only". This page is about the template the document itself records.
Check a copy of the file
- Make a copy of the .docx, rename it to .zip and unzip it.
- Open
word/, if there is one. A relationship whose type ends in_rels/ settings.xml.rels attachedTemplatehas the path in itsTarget. - Open
word/settings.xmland search forattachedTemplateandlinkStyles. - Open
docProps/app.xmland readTemplate. - Finding nothing this way shows only that these searches found nothing, not that the file holds nothing else.
What ScrubDrop does
ScrubDrop reads the .docx in your browser; the file is not uploaded. For free, one file at a time, it counts the attached template under links to other files and can show the start of its path among the first few samples, among the other kinds of hidden data it supports. The free version removes the document properties, the template's name with them, and removes comments and accepts tracked changes; the attached template's path stays. ScrubDrop Pro removes links to other files, and with them the attached template and its path. The update-styles setting holds no path and stays. As above, the standard does not say what it does with no attached template, so turn the setting off in Word before you run ScrubDrop if the formatting must stay as it is.
ScrubDrop does not open macro-enabled files (.docm, .dotm): it asks you to save them as .docx first. A .docx that only names a .dotm as its template is an ordinary .docx and is cleaned as above. The result is read again with separate parsers, and a file that does not pass is not offered.
Questions
Does removing the document properties remove the template's path?
Not by itself. The template's name is a property, in docProps/app.xml. The attached template is a link, kept in word/settings.xml and its relationships part. Clearing the properties with ScrubDrop's free version leaves it, and Microsoft's Document Inspector list does not say whether the inspector removes it. Change the attached template separately, and check settings.xml.rels in a copy.
Does a .docx attached to a .dotm contain macros?
No. The macros are in the .dotm template. The .docx keeps the template's path, which ends in .dotm, so it tells the reader that a macro template was used and where it was kept. On a computer that can reach that path, the template is attached again.
Can the template change a document after I send it?
It can if the recipient can reach the template's path: the template is attached again, and with the setting to update styles from the template turned on, the document's styles are updated to match it. The file format standard says that setting should be ignored when the template cannot be located, and does not say what it does once the attached template has been removed. Turn the setting off and attach a template kept outside your user folder before you send.
Sources: the Microsoft pages linked on this page were checked on 28 October 2026. ScrubDrop is not affiliated with Microsoft.
See the template path and other links a .docx keeps, in your browser. Free: one file at a time; every supported kind of hidden data it finds is listed, and properties, comments and tracked changes are removed. Check a file.