Hi - I'd like to create a macro that would select each visible sheet in a workbook and have the top left cell selected, so that users see the top of each tab.
I know this accomplishes going to the top of each sheet...
Application.Goto Reference:="R1C1"
I'm sure a "For Each" statement can do what I'd want, but I'm not sure how to tweak the coad below (note: over 20 tabs in my workbook, some of which are hidden/protected, so there's no need to run code on those tabs)
Sub ShowMiscTabs()
Application.ScreenUpdating = False
Dim sh
For Each sh In Sheets(Array("Sheet1", "Sheet2", "Sheet3, "Sheet4"))
sh.Visible = True
Next
Application.ScreenUpdating = True
End Sub
I know this accomplishes going to the top of each sheet...
Application.Goto Reference:="R1C1"
I'm sure a "For Each" statement can do what I'd want, but I'm not sure how to tweak the coad below (note: over 20 tabs in my workbook, some of which are hidden/protected, so there's no need to run code on those tabs)
Sub ShowMiscTabs()
Application.ScreenUpdating = False
Dim sh
For Each sh In Sheets(Array("Sheet1", "Sheet2", "Sheet3, "Sheet4"))
sh.Visible = True
Next
Application.ScreenUpdating = True
End Sub