How to Use WPS Macro Editor on Windows

Last updated:July 15, 2026

Use WPS Macro Editor through 4 how-to topics, all available without membership, and jump from the index to the task you need.

How-to Index

How-to Guide

1. Open the JS Macro Editor

Entry path: Tools tab → Developer Tools → macro editor-related button

  1. Open WPS Writer.
  2. Click Developer Tools under Tools.
  3. In the developer-related area, open the macro editor entry.
  4. Enter the editor window and get ready to insert a JS module or edit code.

Success Criteria

  • Interface result: The macro editor window opens.
  • What you can do next: You can see menus related to inserting modules and editing code.

Tips While Using

  • Common mistake: If another macro development environment opens first, continue with the next topic to switch to the JS module workflow.

2. Insert and edit a JS module

Entry path: Top menu in the macro editor → Insert → JS Module

  1. In the macro editor, click Insert on the top menu bar.
  2. Select JS Module.
  3. Enter JavaScript code in the new JS module.
  4. Continue adding or revising the script as needed.

Success Criteria

  • Interface result: A JS module appears in the editor.
  • What you can do next: You can type, revise, and save code in the module.

Tips While Using

  • Common mistake: Make sure you add a JS module instead of writing code in the wrong module type.

3. Set JS as the default development environment

Entry path: File → Options → View

  1. Click File.
  2. Open Options.
  3. Go to the View tab.
  4. Select Default JS Development Environment and save the setting.

Success Criteria

  • Interface result: The related option is selected and saved.
  • What you can do next: The JS macro workflow opens first when you return to developer tools.

Tips While Using

  • Common mistake: If the setting is not saved, the default environment will not change.

4. Save a document that contains macros

Entry path: File → Save As

  1. After finishing the macro code, click File.
  2. Select Save As or a related save command.
  3. In the file type list, choose a macro-enabled format such as .docm.
  4. Save the file and reopen it to confirm that the macro content is still there.

Success Criteria

  • Interface result: The file is saved in a macro-enabled format.
  • What you can do next: After reopening the file, you can still view or continue editing the macro code.

Tips While Using

  • Common mistake: The .docx format does not retain macro code.
  • Environment note: Different document types may require different macro-enabled formats.