Template Issues

Fix Word Not Saving Selected Label Format in DOTM Templates

Camila MilosovichCamila Milosovich Oct 22, 2026 869 views

Question details

Users need to find out how to retain a specific label format (like Avery) in a shared Word template, as it currently defaults to different local settings for different users.

How to Fix Word Not Saving Selected Label Format in DOTM Templates
Product
Microsoft Word
Device & OS
not provided
Scenario
A user shares a macro-enabled Word template (.DOTM) that opens a label dialog via VBA, expecting it to default to a specific label format.
Observed behavior
The selected label format is not retained in the DOTM file; instead, the template opens using the last selected label from the local user's settings, such as Microsoft 1/2 Letter.
Before you start

Ensure you have access to the Developer tab in Word and are comfortable editing the VBA macros that generate your document's label dialog.

Solution 1Recommended

Hardcode the Label Settings Directly in the VBA Macro

Use this solution to explicitly define the label format within the VBA code, bypassing the user's local registry settings.

Microsoft Word stores the last used label format as a local setting in the Windows Registry or user profile, not within the document template itself. When a DOTM file invokes the label dialog via VBA, it pulls from these local preferences.

To ensure all users generate the exact same label (e.g., Avery A4/A5, 3483), you must configure the macro to bypass the dialog and generate the specific label format programmatically.

1
Open the VBA Editor

Go to the Developer tab on the Word ribbon and click 'Visual Basic' to open the VBA Editor.

2
Locate the Label Macro

In the Project Explorer panel, find and double-click the module containing the code that opens the label dialog.

3
Define Label Parameters

Replace the dialog prompt with the `Application.MailingLabel.CreateNewDocument` method. Explicitly set the `Name` parameter to your required label number (e.g., '3483') so the macro automatically generates the correct layout for every user.

4
Save the Template

Click 'Save' in the VBA Editor and close the window to update the .DOTM file.

Hardcode the Label Settings Directly in the VBA Macro
VBA Reference: If you are using a custom label, ensure you also define the custom label parameters in the VBA script, as other users will not have your custom label saved in their local Word options.
Free Microsoft Office alternative

Create and Manage Label Templates Easily with WPS Office

If you are tired of troubleshooting complex VBA configurations and inconsistent local settings in Microsoft Word, try WPS Office. It provides a highly compatible, lightweight environment for creating, sharing, and printing label templates without the hassle.

Fully compatible with Microsoft Word formats (.docx, .dotx, .dotm).Intuitive Mailings and Label creation tools with predictable formatting.Free and lightweight alternative to Microsoft Office.Consistent document rendering across different devices and user profiles.
microsoft office alternative - wps office

Frequently Asked Questions

Where does Word store my last selected label format?

Word stores the last selected label format locally in the Windows Registry and the user profile. It is a local application setting, not a property saved inside the document or template file.

Why does my DOTM template show a different label size for other users?

When your DOTM template uses a macro to open the label dialog, the dialog automatically defaults to the user's local last-used setting rather than the setting you had selected when writing the template.

How do I ensure everyone uses the exact same Avery label layout?

You can either explicitly define the label vendor and product number in your VBA macro code using the Application.MailingLabel method, or you can generate the blank label table first and save that document as your shared template.