VBA & Macro Problems

Fix a VBA Reference to a Missing Worksheet in WPS Office Excel

Khadija KhanKhadija Khan Nov 13, 2026 869 views

Question details

The user needs to locate and resolve a VBA reference to a worksheet named Training that is not visible in a WPS Office Excel workbook, likely because the sheet is VeryHidden or an unused macro is being called.

Fix a VBA Reference to a Missing Worksheet in WPS Office Excel
Product
WPS Office Excel
Device & OS
not provided
Scenario
A VBA macro in a WPS Office Excel workbook refers to a worksheet named Training, but the sheet does not appear among visible tabs.
Observed behavior
The referenced worksheet cannot be found in the normal workbook view; it may be set to VeryHidden or the macro may be unnecessary.
Before you start

Open the workbook in WPS Office Excel and press Alt+F11 to open the VBA Editor. Make sure the Project Explorer is visible by pressing Ctrl+R so you can inspect workbook objects and modules.

Solution 1Recommended

Check and Change the Worksheet Visible Property in the VBA Editor

Use this solution when the Training worksheet is missing from the normal Unhide dialog and you need to make it visible again.

A worksheet can be hidden with the standard Hidden setting or with VeryHidden. VeryHidden sheets do not appear when you right-click sheet tabs and choose Unhide, and they can only be changed through the VBA Editor or code.

1
Open the VBA Editor

In WPS Office Excel, press Alt+F11 to open the VBA Editor window.

2
Open the Immediate window

Press Ctrl+G inside the VBA Editor to show the Immediate window.

3
Check the Visible property

Type ?Worksheets("Training").Visible in the Immediate window and press Enter. A returned value of 2 means the worksheet is VeryHidden.

4
Set the worksheet back to visible

Type Worksheets("Training").Visible = -1 in the Immediate window and press Enter, or set the Visible property to -1 in the Properties window.

Check and Change the Worksheet Visible Property in the VBA Editor
Worksheet restored: After changing Visible to -1, the Training worksheet appears as a normal sheet tab and the VBA reference can run without a missing-sheet error.
WPS Office Excel VBA

Fix a Missing Worksheet VBA Reference in WPS Office Excel

Use the built-in VBA Editor in WPS Office Excel to inspect the Visible property, unhide VeryHidden worksheets, and remove or comment out unused macro references.

  1. 1. Open the workbook and VBA Editor: Launch WPS Office Excel, open the affected workbook, and press Alt+F11.
  2. 2. Inspect the Project Explorer: Press Ctrl+R, expand the project, and review worksheets and modules for the missing Training reference.
  3. 3. Check VeryHidden status: In the Immediate window, run ?Worksheets("Training").Visible. If it returns 2, change it with Worksheets("Training").Visible = -1.
  4. 4. Clean up unused macros: Search the module for Training and the macro name, then comment out or delete any unused procedure.
Built-in VBA Editor for checking VeryHidden worksheet referencesOpens and saves Microsoft Excel macro-enabled workbooks (.xlsm) without losing VBA codeFree and lightweight Office suite with a familiar ribbon interfaceNo need to switch to Microsoft Excel for common VBA troubleshooting
microsoft office alternative - wps office

Frequently Asked Questions

Why does my worksheet not appear in the Unhide dialog?

In WPS Office Excel, a worksheet can be set to VeryHidden. Unlike a normal hidden sheet, a VeryHidden sheet does not appear in the Unhide dialog. Open the VBA Editor with Alt+F11, press Ctrl+G, and run ?Worksheets("Training").Visible. A value of 2 means it is VeryHidden.

How do I make a VeryHidden worksheet visible again?

In the VBA Editor Immediate window, type Worksheets("Training").Visible = -1 and press Enter. Alternatively, select the worksheet in the Project Explorer and change its Visible property to -1 in the Properties window.

How do I find all VBA references to the missing worksheet?

Open the VBA Editor with Alt+F11 and press Ctrl+F. Search for Training to find every reference in the project. Also search for the macro name to see whether it is called by other procedures.

Can I delete a macro that references a missing worksheet?

Only if it is not called elsewhere. Use Ctrl+F in the VBA Editor to search for the procedure name. If there are no callers, you can comment it out by adding an apostrophe at the start of each line, or delete the procedure.