Switching VB/JS Macro Environment in WPS on Windows: Introduction

Last updated:July 15, 2026

Switching VB/JS Macro Environment in WPS on Windows helps you choose the default macro development environment in WPS Writer; it includes 2 core tasks, with 2 available without membership and 0 membership-related items.

At a Glance

MetricValueNotes
Core tasks2Matches the number of rows in the How-to Index
Available without membership2Matches the number of Free rows in the index
Membership-related items0Matches the number of membership-related rows in the index

About This Feature

Overview

Switching VB/JS Macro Environment is a macro development setting in WPS Writer for Windows. It lets you switch the default editing environment between VBA (VB macros) and JavaScript macros, so you can choose the development path that fits your document automation work.

Core tasks include:

  • Set the default JS development environment so WPS Macro Editor opens in the JS environment after restart.
  • Switch back to the VB environment from the developer tools area when you need to work with existing VBA macros.

This feature is useful for users who maintain document automation workflows, test different macro approaches, or move between existing VB macros and JS macros.

System Requirements

ItemRequirement
Operating systemWindows desktop environment
App versionRecommended to use the latest version of WPS Office
NetworkNo mandatory network connection is required for the environment switch itself
OtherVBA macros require the VBA plugin on Windows; documents that contain macros should be saved in a macro-enabled .docm format when needed

Download & Installation

ItemDetails
Official downloadWPS Office Free Download
Check after installationAfter opening WPS Writer, look for related macro environment entries in File > Options > View or Tools > Developer Tools

Source: WPS download page

Compare with Alternatives

DimensionWPSMicrosoftGoogleNotionAdobe
Capability SummaryWPS Writer on Windows lets you switch between VBA (VB macro) and JS macro environments, and you can set JS as the default development environment.Microsoft Word supports creating, recording, running, and writing macros in Visual Basic, with an official workflow centered on VBA macros.Google Workspace macro guidance focuses on Google Sheets, where recorded macros are converted into Apps Script; the official page notes that macros do not exist in Docs, Gmail, or Drive.Notion provides buttons and automations for page, database, notification, and workflow actions rather than a document macro editor environment switch.Adobe Acrobat supports guided actions and JavaScript-based automation for PDF workflows, with automation focused on PDF processing rather than word-processing macro environment switching.
WPS AdvantagesAdvantage: WPS keeps both VB macro and JS macro environment switching inside the same document editing workflow on Windows, which is practical for teams maintaining older VBA scripts while testing JS-based automation.Compared with WPS: Microsoft officially documents VBA macro recording and Visual Basic editing, but the cited page does not describe switching between VB and JS macro environments inside Word.Compared with WPS: Google's official macro workflow is limited to Sheets, and the official article states that macros do not exist in Docs, Gmail, or Drive.Compared with WPS: Notion automation is workflow-oriented and action-based, not a code editor environment for document macros.Compared with WPS: Adobe automation is strong for PDF actions and JavaScript scenarios, but it does not map to switching VB and JS macro environments in a word processor.
Official SourceCreate or run a macroGoogle Workspace macros and Apps ScriptButtonsUse guided actions

Overall Conclusion

If your main goal is to manage document automation inside WPS Writer and move between VB and JS macro workflows, this feature gives a direct environment switch in the same writing app. Other products also support automation, but their official focus is on VBA in Word, spreadsheet macros in Google Sheets, workflow actions in Notion, or PDF actions in Acrobat.

Use Cases

No.ScenarioSuitable forMain issueHow this feature helps
1Start a JS macro workflowUsers who want to build JavaScript macrosThe editor still opens in the older macro environmentTurn on the default JS development environment and restart WPS
2Maintain existing VB macrosUsers with existing VBA macro assetsThey need to return to the VB editor quicklyUse Switch to VB Environment from Developer Tools
3Test script migrationTeams maintaining both VB and JS scriptsThey need to compare behavior across two macro environmentsSwitch environments by task and verify each script path
4Check macro compatibilityDocument automation maintainersThey need to confirm whether switching affects existing codeSwitch environments and return to the original one to continue testing saved code
5Manage macro-enabled filesUsers who archive or share macro documentsIncorrect file formats can prevent macro content from being preservedSave macro documents in a supported .docm format when needed

Membership & Benefits

Free vs WPS Premium

CapabilityFreeWPS Premium
VB/JS macro environment switching entryAvailableAvailable
Basic PDF featuresAvailableAvailable with a broader feature range
Cloud storage1 GB20 GB per user on the cited sharing plan page
Template downloadsLimitedBroader access

Source: WPS Office pricing page

Recommendations

Usage scenarioRecommended planWhy
You mainly need to switch macro environments locally and handle basic document automationFreeThe switching feature itself is available without a membership requirement
You also need more cloud storage, broader template access, or more office add-on benefitsWPS PremiumThis is suitable when your work goes beyond macro environment switching and includes broader office needs

How to Subscribe

Source: WPS Office pricing page