Hello,
I am wondering if there is a way to find a specific group of sheets with a wildcard without looping. I have this code and it works perfectly. I am just curious to see if there is another way. I think performance will improve when the code has to go through 300 sheets.
In my mind I was thinking on a way similar to how DIR() behaves.
ThanksSub Try() ' Dim sh As Worksheet Const strNAME As String = "AP-*" For Each sh In ActiveWorkbook.Sheets If sh.Name Like strNAME And sh.Visible = xlSheetHidden Then sh.Visible = xlSheetVisible End If Next sh End Sub