The AutoFilter in the snip below does not select any rows. arArray is defined by Dim arArray() as Long. The previous step loads the array (1) to (3) with three valid long values (checked by locals view.) If I remove the Operator:=xlFilterValues the row with the matching value for (3) is selected as described for AutoFilter. This project has other single criteria AutoFilters working fine but with strings
Help me see what I’m doing wrong. Using Office 2010 32 bit version.
'----------- Step 3: Autofilter to display items matching the Bar's in the array. Worksheets("Sheet1").Activate Sheet1.Range(sRng).AutoFilter Sheet1.UsedRange.AutoFilter Field:=iBar, Criteria1:=arArray, Operator:=xlFilterValues Sheet1.Cells.Sort Key1:=Range(sAut), key2:=Range(sSrt), Order1:=xlAscending, _ Header:=xlYes, MatchCase:=False, Orientation:=xlSortColumns Display:
Thanks, Buford