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
| No. | Topic | Membership Requirement |
|---|---|---|
| 1 | 1. Set the Default JS Development Environment | Free |
| 2 | 2. Switch Back to the VB Environment | Free |
How-to Guide
1. Set the Default JS Development Environment
Entry path: File → Options → View → Default JS Development Environment
- Click File in the upper-left corner.
- Select Options to open the Options dialog box.
- In the left navigation pane, select View.
- Find the Default JS Development Environment checkbox on the right.
- Select the checkbox and click OK to save the setting.
- 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
- Click Tools in the upper-left area.
- Select Developer Tools to open the developer tools tab.
- 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.