Fix Hidden Worksheets and Macros Not Running in Excel VBA Workbooks
Question details
The user needs to restore access to worksheets and macros in several VBA workbooks and investigate unexpected project changes.

- 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.
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.
Check Hidden Worksheets and VBA Editor Windows
Use this approach to restore visible sheets and check whether the VBA editor panes are simply closed.
In Excel, open the affected workbook and select View > Unhide if the workbook window itself is hidden.
Right-click a visible sheet tab, select Unhide, choose a worksheet, and click OK. Repeat for other hidden sheets.
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.
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.
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 Macro Security and Restore a Trusted Workbook Version
Use these checks when macros remain unavailable or the workbook appears to have been modified.
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.

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.




