I have 4 excel files with around 2000 rows each. In A column, I have several 4 characters strings.
I want to remove all the rows except the ones with codes starting with:
E, L, GC, UD, UG, UB, UK, B
There are too many for filtering one by one, I guess a macro would be a better solution.
My code is this one, but it is just leaving the B values instead of all the interesting ones:
ActiveSheet.Range("$A$1:$A$1379").AutoFilter Field:=1, Criteria1:=Array("=E*", _
"=GC*", "=UD*", _
"=UG*", "=UB*", _
"=UK*", "=B*"), _
Operator:=xlOr
How would you do it?