Fix Word Not Saving Selected Label Format in DOTM Templates
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.

- 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.
Ensure you have access to the Developer tab in Word and are comfortable editing the VBA macros that generate your document's label dialog.
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.
Go to the Developer tab on the Word ribbon and click 'Visual Basic' to open the VBA Editor.
In the Project Explorer panel, find and double-click the module containing the code that opens the label dialog.
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.
Click 'Save' in the VBA Editor and close the window to update the .DOTM file.

Save the Label Table Structure as the Template
Use this solution if you prefer to avoid VBA completely and want to provide a ready-to-use label document.
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.

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.




