Switch to JS Environment in WPS on Windows FAQ

Last updated:July 16, 2026

Common questions about Switch to JS Environment in WPS on Windows usually involve environment differences, code compatibility, and what happens after switching; this FAQ covers 3 common questions.

FAQ

What is the difference between the JS environment and the VBA environment?

  1. The JS environment uses JavaScript and is better suited to cross-platform scripting workflows.
  2. The VBA environment uses VBA and is commonly tied to traditional Windows macro workflows.
  3. Choose the environment based on the macro language you need to maintain and the platform you use.

Can I still use VBA code after switching to the JS environment?

  1. After switching to the JS environment, you need to write code with JavaScript syntax.
  2. Existing VBA code does not run directly as JavaScript code.
  3. To keep using VBA code, switch back to the VB environment.

Will my existing macro code still work after I switch environments?

  1. Switching environments does not delete saved macro code.
  2. Code from different environments needs to run in its matching environment.
  3. Switch back to the original environment to continue running that code.

Glossary

TermDefinition
JS environmentThe JavaScript macro development environment used to write and run JavaScript macro code.
VBA environmentThe VBA-based macro development environment commonly used in traditional Windows macro workflows.
Default JS Development EnvironmentA setting that makes WPS open the macro editor in the JavaScript environment after restart.