In this tutorial, we will run a rather simple VBA code to unhide all worksheets in an Excel workbook.
Sometimes we find files with a large number of hidden worksheets and unhiding them all can only be done one by one.
Follow these steps:
Sub UnhideAllSheets()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Visible = xlSheetVisible
Next ws
End Sub