How to Use WPS View Code on Windows

Last updated:July 17, 2026

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.TopicMembership Requirement
11. Open the VBA EditorFree
22. Write Code in the VBA EditorFree

How-to Guide

1. Open the VBA Editor

Entry: Developer > View Code

  1. Open WPS Writer and go to the document you want to work on.
  2. Click the Developer tab on the ribbon.
  3. Click View Code.
  4. 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

  1. In the project pane on the left side of the VBA editor, select the module you want to edit.
  2. Enter or update VBA code in the code window on the right.
  3. Check that the code structure and statements are complete.
  4. 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.