How to Edit Macros in a Word Startup Custom.dotm Template in WPS Office
Question details
The user needs to edit and redistribute a macro-enabled Word startup template named Custom.dotm without moving it out of the startup folder.

- Product
- WPS Office Writer
- Device & OS
- not provided
- Scenario
- The user copied a macro-enabled template from Normal.dotm to the Word Startup folder and renamed it Custom.dotm, and now wants to edit its macros in place before redistribution.
- Observed behavior
- The Custom.dotm template is located in the Word Startup folder as a global template and must be opened directly so its macros can be edited without relocating the file.
Make sure the Custom.dotm template is present in the startup folder and that the VBA project is not password-protected or locked. If it is protected, obtain the password before editing macros.
Open Custom.dotm directly from WPS Writer to edit its macros
Use this when the template is loaded as a global startup template and you want to edit macros without moving the file.
Opening the .dotm file itself, rather than a document created from it, lets you access the template's VBA project and save changes back to the same startup location.
In WPS Writer, click the File menu in the top-left corner, then select Open.
Browse to the Word Startup folder, choose Custom.dotm, and open it. If prompted, confirm that you want to open the macro-enabled template.
Go to Tools > Macro > Macros, select the macro you need to edit, and click Edit to open the VBA editor.
Make your changes in the VBA editor, save the template, then redistribute the updated Custom.dotm file.

Use the right-click Open command to edit the startup template
Use this if you prefer to open the file from File Explorer without browsing inside the application.
Edit Word Startup .dotm Macros with WPS Office Writer
WPS Office Writer can open Microsoft Word macro-enabled .dotm templates directly, access the VBA editor from Tools > Macro > Macros, and save changes back to the original startup folder so you can redistribute the updated template.
- 1. Download and install WPS Office: Download WPS Office for free from the official WPS website and install it on your Windows computer.
- 2. Open the .dotm template: In WPS Writer, click File > Open, browse to the Word Startup folder, and open Custom.dotm.
- 3. Edit the macro: Click Tools > Macro > Macros, select the macro to edit, and click Edit to make your changes in the VBA editor.
- 4. Save and redistribute: Press Ctrl+S or click File > Save to update Custom.dotm, then share or redistribute the template.

Frequently Asked Questions
Can I edit a global Word startup template without removing it from the Startup folder?
Yes. Open Custom.dotm directly by clicking File > Open in WPS Writer or by right-clicking the file and selecting Open. Edits save back to the same location because you opened the template itself, not a document based on it.
Why don't my macros appear after opening Custom.dotm?
Make sure you opened the Custom.dotm template itself from the Word Startup folder. If you opened a document based on the template, the template project may not appear. Also check whether the VBA project is protected.
Does WPS Office support editing Microsoft Word .dotm macros?
WPS Office Writer can open .dotm files on Windows and provides macro editing through Tools > Macro > Macros, so you can open, edit, and save Microsoft Word macro-enabled templates.
How do I redistribute the edited Custom.dotm template?
Save the .dotm file in WPS Writer, copy it to a shared location or send it directly, and have recipients place it in their Word Startup folder to load it as a global template.
Can I edit the macros if the VBA project is password-protected?
No, you need the VBA project password. Enter the password when prompted in the VBA editor; without it, the macro code cannot be edited.




