To unhide things in Excel, it is important to distinguish between:
- A hidden workbook window
- Hidden worksheets
- Macros/VBA code (which can be hidden or made “very hidden”)
Unhide a hidden workbook window
- Open Excel.
- Go to the View tab.
- In the Window group, select Unhide.
- In the Unhide dialog, select the workbook and select OK.
If Unhide is unavailable, there are no hidden workbook windows in the current Excel session.
On Mac:
- Use the Window menu on the menu bar.
- Select Unhide, then choose the workbook.
Unhide hidden worksheets (normal hidden)
- Right-click any visible sheet tab at the bottom.
- Select Unhide.
- In the Unhide dialog, select the sheet(s) and select OK.
Or via ribbon:
- Select the sheet(s) to unhide (if using the dialog, any visible sheet tab is fine).
- On the Home tab, select Format.
- Under Visibility, select Hide & Unhide > Unhide Sheet.
- Choose the sheet(s) and select OK.
Unhide a sheet that was hidden with VBA as xlVeryHidden
If a macro or VBA code has set a sheet’s Visible property to xlVeryHidden, it will not appear in the Unhide dialog. It must be made visible again via VBA:
Example macro to unhide a specific sheet:
Sub UnhideSheet()
Sheets("Sheet1").Visible = True
End Sub
Example macro to hide a sheet again:
Sub HideSheet()
Sheets("Sheet1").Visible = False
End Sub
Example macro to make a sheet “very hidden” (only VBA can unhide it):
Sub VeryHiddenSheet()
Sheets("Sheet1").Visible = xlVeryHidden
End Sub
If the macro itself (VBA project) is password-protected, the password is required to view or edit the code, but the code can still be run if it is already in the workbook.
Unhide all worksheets via automation (Power Automate Desktop example)
If many sheets are hidden (including by macros), a script can unhide them all:
- In Power Automate for desktop, set a variable (for example,
ExcelFile) with the full path to the workbook.
- Use Run VBScript with code like:
'Opens the Excel file
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open("%ExcelFile%")
objExcel.Application.Visible = True
'Unhides all the worksheets of the Excel file
For i = 1 To objWorkbook.Sheets.Count
objWorkbook.Sheets(i).Visible = True
Next
'Saves and closes the Excel file
objWorkbook.Save
objWorkbook.Close SaveChanges = True
This makes every sheet visible again, regardless of how it was hidden.
References: