Hi !
This is what I need to do:
I have a range (lista) that contains strings in column 2, and I want to filter it by those cells that contain any of the words in a string called myarray.
Being myarray for example {"one","two","three"}, i would need to filter lista by the cells that contain either "one" OR "two" OR "three".
This is what i have now but it filters data that contain only the first element of the array:
I'd greatly appreciate any light on this.
Greetings from Uruguay.
Adrián
This is what I need to do:
I have a range (lista) that contains strings in column 2, and I want to filter it by those cells that contain any of the words in a string called myarray.
Being myarray for example {"one","two","three"}, i would need to filter lista by the cells that contain either "one" OR "two" OR "three".
This is what i have now but it filters data that contain only the first element of the array:
Code:
Sub FiltradoPrueba()
Dim myarray As Variant
myarray = Range("Conceptos").Value
ActiveSheet.Range("LISTA").AutoFilter Field:=2, Criteria1:=myarray, Operator:=xlFilterValues
End Sub
I'd greatly appreciate any light on this.
Greetings from Uruguay.
Adrián