i have the following code which hides all sheets except the one named
What I want to do is to hide sheets based on a list of sheet names given on sheet1. so if range A1:A10 contains a list of sheet names i want the code to hide those sheets. any pointers on how i can modify my code to make this happen?
Cheers, Craig
Si fractum non sit, noli id reficere
Code:
Function hideAll()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
If ws.Name <> "MainMenu" Then ws.Visible = xlSheetVeryHidden
Next
End Function
Cheers, Craig
Si fractum non sit, noli id reficere