StuLux
Well-known Member
- Joined
- Sep 14, 2005
- Messages
- 682
- Office Version
- 365
- Platform
- Windows
I've read several posts about how to use autofilter with more than 2 criteria and the answer seems to be to use an array - I am trying the following but get a Type Mismatch error on the Criteria 2 line?
For further clarity the criteria are then used laterin the code as follows:
Code:
Criteria1 = "*Meeting 1*"
Criteria2 = Array("<>*at their Stand*", "<>*Table (TBC)*")
For further clarity the criteria are then used laterin the code as follows:
Code:
Sheet1.Range("A1").AutoFilter Field:=SponsorColID, Criteria1:=Criteria1, Criteria2:=Criteria2
Last edited: