VBA & Macro Problems

How to Edit Macros in a Word Startup Custom.dotm Template in WPS Office

Muhammad TalhaMuhammad Talha Nov 13, 2026 869 views

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.

How to Edit Macros in a Word Startup Custom.dotm Template in WPS Office
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the File menu

In WPS Writer, click the File menu in the top-left corner, then select Open.

2
Select the Custom.dotm template

Browse to the Word Startup folder, choose Custom.dotm, and open it. If prompted, confirm that you want to open the macro-enabled template.

3
Open the Macro editor

Go to Tools > Macro > Macros, select the macro you need to edit, and click Edit to open the VBA editor.

4
Save and redistribute

Make your changes in the VBA editor, save the template, then redistribute the updated Custom.dotm file.

Open Custom.dotm directly from WPS Writer to edit its macros
Global template editing works in place: Because you opened the template directly, the edits are saved to Custom.dotm in the startup folder; no need to move it back from another location.
WPS Office Macro Editing

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. 1. Download and install WPS Office: Download WPS Office for free from the official WPS website and install it on your Windows computer.
  2. 2. Open the .dotm template: In WPS Writer, click File > Open, browse to the Word Startup folder, and open Custom.dotm.
  3. 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. 4. Save and redistribute: Press Ctrl+S or click File > Save to update Custom.dotm, then share or redistribute the template.
Edit global .dotm templates without relocating them from the Word Startup folder.Full compatibility with Microsoft Word .dotm and .docm macro-enabled files.Free, lightweight Office suite with a familiar ribbon interface.Seamless VBA macro editing on Windows with WPS Office Writer.
microsoft office alternative - wps office

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.