Hello again.
I have the following script for filter in excel.
Sub Pesq1_Clique()
sbx = InputBox("Type desired word")
If sbx = cancel Then
Exit Sub
End If
ActiveSheet.Range("$B$3:$G$92").AutoFilter Field:=1, Criteria1:=sbx _
, Operator:=xlAnd
ActiveSheet.Range("$B$3:$G$92").AutoFilter Field:=2, Criteria1:=sbx _
, Operator:=xlAnd
ActiveSheet.Range("$B$3:$G$92").AutoFilter Field:=3, Criteria1:=sbx _
, Operator:=xlAnd
ActiveSheet.Range("$B$3:$G$92").AutoFilter Field:=4, Criteria1:=sbx _
, Operator:=xlAnd
ActiveSheet.Range("$B$3:$G$92").AutoFilter Field:=5, Criteria1:=sbx _
, Operator:=xlAnd
ActiveSheet.Range("$B$3:$G$92").AutoFilter Field:=6, Criteria1:=sbx _
, Operator:=xlAnd
MsgBox "No more results"
End Sub
The way it is now it's just hiding everything because if first, second, third and so on columns does not contain searched word it hides all the rows in range.
I would like the macro to search first column if word not found, ignore and go next column from column B to G and show all the rows that contain the searched word (or expression or number or part of expression/ number) .
To resume I'm trying to find a way to make a custom search that show all the rows that contain searched item and hide other rows that doesn't have searched word...
Could somebody help me on that?
Thanks in advance.
Bookmarks