garypea123
Board Regular
- Joined
- Mar 16, 2020
- Messages
- 221
- Office Version
- 365
- Platform
- Windows
Hi,
I have a work book with around 20 tabs (work sheets)
At the beginning of my script I unhide them with
Application.ScreenUpdating = False
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Visible = xlSheetVisible
Next ws
But at the end of the script I would like to hide them all expect 3 or 4 (lets call them "Gary", "John","Jen","Karen". How do I hide all work books except the 4 I have listed please?
Thanks,
Gary
I have a work book with around 20 tabs (work sheets)
At the beginning of my script I unhide them with
Application.ScreenUpdating = False
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Visible = xlSheetVisible
Next ws
But at the end of the script I would like to hide them all expect 3 or 4 (lets call them "Gary", "John","Jen","Karen". How do I hide all work books except the 4 I have listed please?
Thanks,
Gary