neodjandre
Well-known Member
- Joined
- Nov 29, 2006
- Messages
- 950
- Office Version
- 2019
- Platform
- Windows
I am trying to filter a table using multiple criteria - however i am getting an error when I define the .Autofilter
I would assume this is the most correct syntax to use to avoid potential problems.
Dim filterValues() As Variant
filterValues(0) = "JB"
filterValues(1) = "JL"
xsheetname.Activate
xsheetname.ListObjects("tablename").AutoFilter Field:=1, Criteria1:=filterValues, Operator:=xlFilterValues
any ideas please?
many thanks
Andrew
I would assume this is the most correct syntax to use to avoid potential problems.
Dim filterValues() As Variant
filterValues(0) = "JB"
filterValues(1) = "JL"
xsheetname.Activate
xsheetname.ListObjects("tablename").AutoFilter Field:=1, Criteria1:=filterValues, Operator:=xlFilterValues
any ideas please?
many thanks
Andrew