WPS Switching VB/JS Macro Environment on Windows FAQ

Last updated:July 15, 2026

When using Switching VB/JS Macro Environment, common questions usually involve when the setting takes effect, code compatibility, and platform limits; this FAQ includes 4 common questions and a glossary.

FAQ

I set the default JS environment, but the VB editor still opens. What should I do?

  1. Open File → Options → View.
  2. Confirm that Default JS Development Environment is selected.
  3. Restart WPS and open the macro editor again.

Can my existing macro code still run after I switch environments?

  1. Switching the macro environment does not remove saved macro code.
  2. Switch back to the matching environment when you need to run existing code.
  3. Before running the code, confirm that the current editor matches the macro environment used by that code.

Where can I use VBA macros?

  1. The VBA macro workflow described here is for Windows.
  2. Make sure the VBA plugin is installed before using VBA macros.
  3. This VBA usage path is not available in the same way on macOS, Linux, or mobile.

Why should a document with macros be saved as .docm?

  1. Macro content should be stored in a macro-enabled document format.
  2. Choose the .docm format when saving the document.
  3. Reopen the file after saving and confirm that the macro content is still available.

Glossary

TermDefinition
VBAVisual Basic for Applications, a macro language environment commonly used for Office document automation.
JS macroA JavaScript-based macro approach used for automation in WPS.
Macro environmentThe development environment used to edit, run, and manage macro code.
.docmA macro-enabled Word document format used to preserve macro content in a document.