Use WPS View Code on macOS through 2 operation topics; both are available without membership, and 0 topics are membership-related.
How-to Index
| No. | Topic | Membership Requirement |
|---|---|---|
| 1 | 1. Open the View Code entry | Free |
| 2 | 2. Insert a module and write code in the macro editor | Free |
How-to Guide
1. Open the View Code entry
Entry path: Developer Tools → View Code
- Open WPS Writer on your Mac and open the target document.
- Click the Developer Tools tab on the ribbon.
- Click View Code.
- Wait for the WPS Macro Editor window to open.
Success Criteria
- Interface result: The WPS Macro Editor window opens.
- What you can do next: You can review existing code or continue by creating a new module.
Tips While Using
- Common mistake: If you are not on the Developer Tools tab, you may not see the View Code button.
- Environment note: If the button is unavailable, check whether macro-related settings are enabled first.
2. Insert a module and write code in the macro editor
Entry path: Tools → Developer Tools → WPS Macro Editor; then Insert → Module in the editor
- Open the WPS Macro Editor first.
- Click Insert at the top of the editor.
- Select Module.
- Type or paste JavaScript code into the new JS module.
- Save your changes as needed and continue with later testing or editing.
Success Criteria
- Interface result: A new module appears in the editor.
- What you can do next: You can continue entering, revising, and maintaining code in the module area.
Tips While Using
- Common mistake: You cannot insert a module before opening the macro editor.
- Environment note: Before editing or running code from another person, confirm its purpose and back up the document.