Evagrius Ponticus
Well-known Member
- Joined
- May 24, 2007
- Messages
- 1,467
Hi,
I am trying to avoid having to use the actual sheet name in the code below - I can't get it to work. I would prefer to use the code name for the sheet if possible? Thank you for any help.
I am trying to avoid having to use the actual sheet name in the code below - I can't get it to work. I would prefer to use the code name for the sheet if possible? Thank you for any help.
Code:
Dim ws As Worksheet
Application.ScreenUpdating = False
Sheet2.Visible = xlSheetVisible
Sheet2.Activate
For Each ws In ThisWorkbook.Worksheets
If ws <> Sheet2 Then ws.Visible = xlSheetVeryHidden
Next ws