Switch to JS Environment in WPS on Windows lets you switch between VBA and JavaScript macro environments; this guide covers 2 core tasks, with 2 available without membership and 0 membership-related items.
At a Glance
| Metric | Value | Notes |
|---|---|---|
| Core tasks | 2 | Matches the How-to Index row count |
| Available without membership | 2 | Matches the Free rows in the index |
| Membership-related items | 0 | Matches the membership-related rows in the index |
About This Feature
Overview
Switch to JS Environment is a developer tool in WPS Presentation for Windows that lets you move between the VBA macro environment and the JavaScript macro environment. It also lets you set JavaScript as the default development environment after restart.
Core capabilities include:
- Switch between JS and VB environments from the Developer tab.
- Set JavaScript as the default macro development environment.
This feature is useful for macro setup, JavaScript-based scripting, and keeping a consistent development workflow across teams.
System Requirements
| Item | Requirement |
|---|---|
| Operating system | A Windows device |
| App version | The latest version of WPS Office is recommended |
| Network | No mandatory network connection for the switching feature itself |
| Other | A VBA plug-in is required for VBA macro use on Windows; VBA macros are not supported on Mac, Linux, or mobile versions |
Download & Installation
| Item | Details |
|---|---|
| Official download | WPS Office Free Download |
| Verification after installation | Open WPS Presentation, go to the Developer tab, and confirm that the Switch to JS Environment entry is available |
Source: WPS download page
Compare with Alternatives
| Dimension | WPS | Microsoft | Notion | Adobe | |
|---|---|---|---|---|---|
| Capability Summary | WPS Presentation can switch the macro environment from VBA to JavaScript and also lets you set JavaScript as the default development environment. | Microsoft Word provides the Word JavaScript API and Office JavaScript API for cross-platform add-ins, but it does not present this as a one-click VBA/JS environment switch inside a local macro editor. | Google Apps Script supports JavaScript, HTML, and CSS for Workspace automation and extensions, but it does not provide a VBA-to-JS environment switch for presentation macros. | Notion Developer Platform supports custom code through the CLI and Workers for workspace automation and integrations, rather than document macro environment switching. | Adobe Acrobat provides a JavaScript API for PDF scripting and automation, but it does not offer a paired VBA/JS environment switch for presentation editing. |
| WPS Advantages | Advantage: WPS keeps environment switching and default JS setup in a direct in-app path, which is practical for users already working with WPS macros. | Compared with WPS: Microsoft focuses on add-in development and API-based extension workflows. | Compared with WPS: Google focuses on cloud automation and Workspace scripting instead of desktop presentation macro switching. | Compared with WPS: Notion is oriented toward workspace automation and connected systems rather than presentation macro environments. | Compared with WPS: Adobe centers on PDF scripting and form workflows, so the usage path differs from presentation macro development. |
| Official Source | — | Word add-ins overview | Apps Script | What is the Notion Developer Platform | Acrobat JavaScript API Reference |
Overall Conclusion
If your main goal is to manage macro environments directly inside WPS Presentation, WPS offers a more direct switching path. The other products support JavaScript-based extension or automation, but they are aimed more at add-ins, cloud automation, or PDF scripting workflows.
Use Cases
| No. | Scenario | Suitable for | Main issue | How this feature helps |
|---|---|---|---|---|
| 1 | Moving from VBA to JS macros | Macro users | Need to start writing scripts in JavaScript | Use Switch to JS Environment to enter the JS macro workflow quickly |
| 2 | Standardizing team setup | Teams and coordinators | Different users start in different environments | Turn on Default JS Development Environment |
| 3 | Returning to legacy macro work | Users maintaining older macros | Need to review or run VB-based macros | Switch back to the VB environment when needed |
| 4 | Preparing for cross-platform scripting | Users planning broader script compatibility | VBA is limited to Windows | Use the JavaScript macro environment for future-ready scripting |
| 5 | Initial setup on a new device | New WPS users | Need to finish development setup after installation | Install WPS and set JS as the default environment |
Membership & Benefits
Free vs WPS Premium
| Capability | Free users | WPS Premium |
|---|---|---|
| Switch to JS Environment | ✅ | ✅ |
| Set default JS development environment | ✅ | ✅ |
| Basic PDF features | ✅ | ✅ |
| More advanced PDF and extended benefits | Limited or unavailable | Broader access |
| Cloud storage | 1 GB | 20 GB shown on the pricing page |
Source: WPS Office pricing page
Recommendations
| Usage scenario | Recommended plan | Why |
|---|---|---|
| You only need macro environment switching and basic setup | Free | This feature itself is available without membership |
| You also need more PDF tools, cloud storage, or broader benefits | WPS Premium | Better suited to users who want more office features beyond macro environment switching |
How to Subscribe
- Membership page: Get WPS Premium
Source: WPS Office pricing page