Hi,
The following code I'm using filters rows on cell value. How could I make the code to hide the rows instead of filtering?
Any help on this would be kindly appreciated.
Thanks in advance.
The following code I'm using filters rows on cell value. How could I make the code to hide the rows instead of filtering?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If UCase(Sheets("Orders").Range("D17").Value) <> "ALL" Then
Sheets("Orders").Range("C17").AutoFilter Field:=2, Criteria1:=Range("O6").Text
Else
If Sheets("Orders").AutoFilterMode Then
Sheets("Orders").Range("C17").AutoFilter
End If
End If
End Sub
Thanks in advance.