So I'm just getting my feet wet with macros and am learning that there are about a hundred ways to write the code for the same result. I'm trying to find a macro to unhide all sheets and there are plenty on the web to choose from however none of them seem to work in my workbook.
This is the latest one I'm trying
Why doesn't it work?
This is the latest one I'm trying
Code:
Sub UnhideAllSheets()
'Unhide all sheets in workbook.
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Visible = xlSheetVisible
Next ws
End Sub
Why doesn't it work?