Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50057

Multiple Autofilter

$
0
0
Hello All,
I'm trying to do autofilter but it does not work:
I want to filter 3 criteria blank, less than today, #N/A in column U
Code:

    ActiveSheet.Range("$B$1:$AO$1").AutoFilter Field:=20, Criteria1:=Array( _
        "=", "<=" & CStr(MyDate)), Operator:=xlOr, Criteria2:="#N/A"

Regards,
tt3

Viewing all articles
Browse latest Browse all 50057

Trending Articles