Hello Friends,
I am using a VBA code to filter record. Here is the code
I would like to give a range (D1) in the Field:=2 part of the code instead of "a"
Any help will be appreciated
Regards,
Humayun
I am using a VBA code to filter record. Here is the code
Sub aaa()
ActiveSheet.Range("A1:B25").AutoFilter Field:=1, Criteria1:=Range("C1"), _
Operator:=xlOr
ActiveSheet.Range("A1:B25").AutoFilter Field:=2, Criteria1:="*a*", _
Operator:=xlAnd
End Sub
I would like to give a range (D1) in the Field:=2 part of the code instead of "a"
Any help will be appreciated
Regards,
Humayun