Use View Code with 2 how-to topics, both available directly in WPS Writer on Windows; choose a topic from the index and follow the steps in order.
How-to Index
| No. | Topic | Membership Requirement |
|---|---|---|
| 1 | 1. Open the VBA Editor | Free |
| 2 | 2. Write Code in the VBA Editor | Free |
How-to Guide
1. Open the VBA Editor
Entry: Developer > View Code
- Open WPS Writer and go to the document you want to work on.
- Click the Developer tab on the ribbon.
- Click View Code.
- Wait for the VBA editor window to open.
Success Criteria
- Interface result: a separate VBA editor window is visible.
- What you can do next: you can review the project pane, module list, and code editing area.
Tips While Using
- Common mistake: if you are not in a WPS Writer document window, you may not see the related entry.
- Environment note: if the Developer tab is not visible, confirm that your current installation and interface setup are complete.
2. Write Code in the VBA Editor
Entry: after opening the VBA editor, work in the project pane and code window
- In the project pane on the left side of the VBA editor, select the module you want to edit.
- Enter or update VBA code in the code window on the right.
- Check that the code structure and statements are complete.
- Press F5 to run the code for testing.
Success Criteria
- Interface result: the code has been added to or updated in the target module.
- What you can do next: you can continue saving, editing, or running another test.
Tips While Using
- Common mistake: if you do not select the target module first, code may be added in an unexpected location.
- Environment note: before running a macro, save the document so you can roll back changes more easily.