Hi Friends, I request your help here for a code to search for a column using column name and filter data using wildcards. ABC, PQR, and XYZ are part of the same team but no other column to identify teams and therefore they need to be searched at once from the given data.
Below code was generated by a macro. I tried to tweak it but I am not able to get my head around it and its not working as planned.
Sub Filter_DC()
Cells.Find(What:="Name", LookAt:=xlWhole).Activate
Selection.AutoFilter
ActiveSheet.Range("A1:V1000").AutoFilter Field:=14, Criteria1:=Array("*ABC*", "*PQR*", "*XYZ*"), Operator:=xlFilterValues
Cells.Find(What:="Name").Select
End Sub
Please help.
Below code was generated by a macro. I tried to tweak it but I am not able to get my head around it and its not working as planned.
Sub Filter_DC()
Cells.Find(What:="Name", LookAt:=xlWhole).Activate
Selection.AutoFilter
ActiveSheet.Range("A1:V1000").AutoFilter Field:=14, Criteria1:=Array("*ABC*", "*PQR*", "*XYZ*"), Operator:=xlFilterValues
Cells.Find(What:="Name").Select
End Sub
Please help.