Still a VBA newbie. Please help.
Posted by Sean on June 23, 2001 4:43 AM
Sub ConditionalHide()
Dim cRange As String
cRange = Sheets("Char Dev").Range("A1")
For i = 2 To Sheets.Count
If Sheets(i).Range("A1").Value <> cRange Then
Sheets(i).Visible = False
Else: Sheets(i).Visible = True
End If
Next i
End Sub
Is it possible to run this script for more than one criteria?
I want it to show me all sheets matching criteria in A1 plus all sheets matching criteria in A2 plus all sheets matching criteria in A3.