Hello Experts,
I have got below VBA coding which works fine and when I run it, all sheets unhide but for some reason then doesn´t stay in the active sheet I was prior it and goes to the last sheet of my workbook of all of them which just got unhidden.
Any chance to run the VBA and stays in the active sheet afterwards in same place as it was previously?
Cheers,
John
I have got below VBA coding which works fine and when I run it, all sheets unhide but for some reason then doesn´t stay in the active sheet I was prior it and goes to the last sheet of my workbook of all of them which just got unhidden.
Any chance to run the VBA and stays in the active sheet afterwards in same place as it was previously?
VBA Code:
Sub Unhide_all()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Visible = xlSheetVisible
Next ws
End Sub
Cheers,
John