Use Switch to JS Environment in WPS on Windows with 2 how-to topics, including switching between JS and VB environments and setting JS as the default development environment.
How-to Index
| No. | Topic | Membership Requirement |
|---|---|---|
| 1 | 1. Switch between JS and VB environments | Free |
| 2 | 2. Set the default JS development environment | Free |
How-to Guide
1. Switch between JS and VB environments
Feature entry: Developer → Switch to JS Environment / Switch to VB Environment
- Click the Developer tab at the top of the window.
- Click Switch to JS Environment.
- The current environment changes from VBA to JavaScript.
- If needed, click Switch to VB Environment to return.
Success Criteria
- Interface result: The macro editor reflects the selected environment.
- Next action available: You can continue writing or reviewing code in that environment.
Tips While Using
- VBA and JS are separate macro environments with different syntax and runtime behavior.
- Check which macro language you need before switching.
2. Set the default JS development environment
Feature entry: File → Options → View → Default JS Development Environment
- Click the File menu in the upper-left corner.
- Select Options to open the Options dialog.
- Select the View tab on the left.
- Find the Default JS Development Environment checkbox on the right.
- Select the checkbox and click OK to save the setting.
- Restart WPS to make the setting take effect. WPS Macro Editor then opens in the JS environment by default.
Success Criteria
- Interface result: The setting remains selected after saving.
- Next action available: After restart, you can enter the JS macro environment directly.
Tips While Using
- The setting takes effect after WPS restarts.
- If you still maintain older VB macros often, you can keep using manual switching when needed.