ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   filters (https://www.excelbanter.com/excel-programming/300828-filters.html)

jrh

filters
 
I am trying to filter with three criteria. is this too
much criteria? with 2 criteria it works, with three it
does not.

here is the code with 3 criteria which are defined earlier

Selection.AutoFilter Field:=3, Criteria1:="<" &
Filter1, Operator:=xlAnd, _
Criteria2:="<" & Filter2, Operator:=xlAnd,
Criteria3:="<" & Filter3

thank you!

Jim Rech

filters
 
When you do a custom autofilter manually you see there is a limit of 2
conditions. That same limit applies when you do the autofilter by a macro.

--
Jim Rech
Excel MVP
"jrh" wrote in message
...
|I am trying to filter with three criteria. is this too
| much criteria? with 2 criteria it works, with three it
| does not.
|
| here is the code with 3 criteria which are defined earlier
|
| Selection.AutoFilter Field:=3, Criteria1:="<" &
| Filter1, Operator:=xlAnd, _
| Criteria2:="<" & Filter2, Operator:=xlAnd,
| Criteria3:="<" & Filter3
|
| thank you!




All times are GMT +1. The time now is 12:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com