How to Switch VB/JS Macro Environment in WPS on Windows

Last updated:July 15, 2026

Use Switching VB/JS Macro Environment with 2 how-to topics, both available without membership; choose a topic from the index and follow the entry path and steps to complete the setup.

How-to Index

How-to Guide

1. Set the Default JS Development Environment

Entry path: File → Options → View → Default JS Development Environment

  1. Click File in the upper-left corner.
  2. Select Options to open the Options dialog box.
  3. In the left navigation pane, select View.
  4. Find the Default JS Development Environment checkbox on the right.
  5. Select the checkbox and click OK to save the setting.
  6. Restart WPS. After restart, WPS Macro Editor opens in the JS environment by default.

Success Criteria

  • Interface result: When you open the macro editor again, it opens in the JS macro environment by default.
  • What you can do next: You can continue writing or debugging JS macros.

Tips While Using

  • Common mistake: The setting is saved but WPS is not restarted, so the default environment does not change.
  • Environment note: This setting is intended for the Windows desktop app.

2. Switch Back to the VB Environment

Entry path: Tools → Developer Tools → Switch to VB Environment

  1. Click Tools in the upper-left area.
  2. Select Developer Tools to open the developer tools tab.
  3. In the developer tools tab, click Switch to VB Environment.

Success Criteria

  • Interface result: The macro editing entry changes to the VB environment.
  • What you can do next: You can continue viewing, editing, or running existing VB macro code.

Tips While Using

  • Common mistake: Treating environment switching as automatic code conversion; this action only changes the development environment entry.
  • Environment note: VBA macros require the VBA plugin on Windows.