Good afternoon,
I am looking to create an AutoFilter that looks for multiple different beginning combinations. Please see below for code:
ActiveSheet.Range(Cells(1, 1), Cells(LastRow, LastCol)).AutoFilter Field:=13, Criteria1:=Array("56*", "57*", "59*", "62*", "67*"), Operator:=xlFilterValues
When I use the first 2 criteria the code seems to work correctly, however, when adding any more the filters returns with no results which is not correct. When I record a macro and manually select the records to include, it lists a huge array of criteria and runs properly. Is there a way to add a begins with property to the code Excel generates when recording a macro?
Thanks.
Bookmarks