VBA & Macro Problems

Fix Hidden Worksheets and Macros Not Running in Excel VBA Workbooks

Ayan MasoodAyan Masood Dec 2, 2026 869 views

Question details

The user needs to restore access to worksheets and macros in several VBA workbooks and investigate unexpected project changes.

Fix Hidden Worksheets and Macros Not Running in Excel VBA Workbooks
Product
Microsoft Excel and Visual Basic for Applications
Device & OS
not provided
Scenario
Opening VBA-enabled workbooks to view worksheets, run macros, and inspect project properties.
Observed behavior
Worksheets are not displayed, macros do not run, and the VBA Properties window is missing. A project password may also have changed unexpectedly.
Before you start

Work with copies of the affected files and scan the computer for malware before enabling any macros. Identify a trusted earlier version of each workbook for comparison if project contents or passwords have changed.

Solution 1Recommended

Check Hidden Worksheets and VBA Editor Windows

Use this approach to restore visible sheets and check whether the VBA editor panes are simply closed.

1
Check the workbook window

In Excel, open the affected workbook and select View > Unhide if the workbook window itself is hidden.

2
Unhide worksheets

Right-click a visible sheet tab, select Unhide, choose a worksheet, and click OK. Repeat for other hidden sheets.

3
Show the VBA editor panes

Open Developer > Visual Basic. In the editor, select View > Project Explorer and View > Properties Window; on Windows, you can also use Alt+F11 to open the editor and F4 to show Properties.

4
Check very hidden sheets

In Project Explorer, select a worksheet and inspect its Visible property in the Properties window. If it is set to xlSheetVeryHidden, change it to xlSheetVisible. You may need to unlock the VBA project with its known password first.

5
Check workbook protection

In Excel, open Review > Protect Workbook. If the workbook structure is protected, use the unprotect option and enter the known password before changing sheet visibility.

Check Hidden Worksheets and VBA Editor Windows
If the project password is unexpected: Do not attempt to bypass project protection. Compare the file with a trusted earlier version or restore that version instead.
Free Microsoft Office alternative

Open Excel Workbooks with WPS Spreadsheet

WPS Office is a free, lightweight alternative with a familiar interface for viewing and editing spreadsheets. Its Excel format compatibility helps make migration straightforward, but it does not repair Excel VBA projects; test any required macros and VBA features before switching.

View and edit workbook data in a familiar spreadsheet interfaceCompatible with Microsoft Excel formats, including XLSX and XLS filesFree and lightweight for everyday spreadsheet workMove existing spreadsheets into WPS without rebuilding them from scratch
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't a worksheet appear in Excel's Unhide list?

It may be set to xlSheetVeryHidden. Open Developer > Visual Basic, select the worksheet in Project Explorer, and check its Visible property in the Properties window.

How do I bring back the VBA Properties window?

In the VBA editor, select View > Properties Window. On Windows, you can also press F4.

Should I enable macros to see if the workbook works?

Enable macros only after verifying the workbook and its source are trusted. In Excel on Windows, review the settings under File > Options > Trust Center > Trust Center Settings > Macro Settings.

What should I do if the VBA project password no longer works?

Check that you have the correct password, then compare the file with a trusted earlier copy. If the project appears to have changed, restore a backup or an earlier version rather than attempting to bypass protection.