Run Macro in WPS on Windows: Introduction

Last updated:July 17, 2026

Run Macro in WPS on Windows lets you execute existing JS macro code and VBA macro code for document automation; this guide covers 1 core task, with 1 available without membership and 0 membership-related items.

At a Glance

MetricValueNotes
Core tasks1Matches the number of rows in the How-to Index
Available without membership1Matches the number of Free rows in the index
Membership-related items0Matches the number of membership-related rows in the index
Version limitationWindows supports VBA macrosVBA macros are not supported on Mac

About This Feature

Overview

Run Macro is an automation feature in WPS Writer that lets you run existing JS macro code or VBA macro code to complete repeated document tasks more efficiently.

Core capabilities include:

  • Run an existing macro directly from the Run Macro dialog.
  • Support two macro types: JS macro code and VBA macro code.
  • Reduce repeated manual work in document processing.

Typical use cases include batch formatting, repeated content insertion, and fixed document processing workflows.

System Requirements

ItemRequirement
Operating systemWindows desktop environment
App versionIt is recommended to use the latest version of WPS Office
NetworkNo mandatory internet connection is required for local macro execution
OtherOpen the document in WPS Writer; use Windows if you need to run VBA macros

Download & Installation

ItemDetails
Official downloadWPS Office Free Download
Installation notesDownload and install the WPS Office Windows client, then open WPS Writer to access the related entry points
Post-install checkOpen a document, then go to Tools and Developer Tools to confirm that the Run Macro button is available

Source: WPS Download Center

Compare with Alternatives

DimensionWPSMicrosoftGoogleNotionAdobe
Capability SummaryWPS Writer can run existing JS macro code and VBA macro code to automate preset document operations.Word can create, record, and run macros from a button, keyboard shortcut, or the macro list for desktop document automation.Google Workspace macros are available in Google Sheets, where recorded actions are converted into Apps Script and played back automatically.Notion buttons automate page, database, notification, and related workspace actions with one click.Acrobat guided actions can run one or more commands across multiple PDF files with a single click.
WPS AdvantagesAdvantage: WPS focuses on running existing document macros directly from the interface in a writing workflow, including JS macros and Windows VBA macros.Compared with WPS: Word provides a broader macro recording workflow, while WPS centers this feature on directly running existing macros in WPS Writer.Compared with WPS: Google's macro workflow is centered on Sheets rather than word-processing documents.Compared with WPS: Notion automation is designed for workspace workflows and database actions rather than document macro code execution.Compared with WPS: Adobe automation is oriented toward PDF batch processing instead of word-processing macro execution.
Official SourceCreate or run a macroGoogle Workspace macros and Apps ScriptButtonsGuided actions

Overall Conclusion: If your main task is to run existing macros inside a word-processing document, WPS provides a direct entry point in WPS Writer. Other products also offer automation, but they focus more on Word macro workflows, spreadsheet automation, workspace actions, or PDF batch processing.

Use Cases

No.ScenarioSuitable forMain pain pointHow it helps
1Batch formattingAdministrative staff and office usersRepeatedly adjusting headings, paragraphs, and fonts takes timeRun a preset macro to complete formatting automatically
2Template-based insertionOffice usersThe same document flow requires repeated content insertionUse a macro to perform fixed insertion and layout steps
3Document workflow automationTeam membersRepeating multiple steps manually can cause errorsRun a macro to complete steps in a preset order
4VBA-based document processingUsers familiar with VBAExisting VBA scripts need to be reused in documentsSelect and run a VBA macro directly on Windows
5JS macro executionUsers who rely on scriptingManual script-based operations are inefficientSelect a JS macro in the Run Macro window and execute it

Membership & Benefits

Free vs WPS Premium

CapabilityFreeWPS Premium
Run Macro entryAvailableAvailable
Basic office editingAvailableAvailable
Additional premium benefitsSee current plan detailsSee current plan details

Source: WPS Office pricing page

Recommendations

Usage scenarioRecommended planWhy
You only need to run existing macrosFreeThe Run Macro feature is available without a membership requirement
You also need more advanced office benefitsWPS PremiumSuitable if you want additional premium features beyond macro execution

How to Subscribe

Source: WPS Office pricing page