Excel VBA autofilter uncheck/exclude items -


quick question, how can exclude item in list through vba. have been working on sheet automatically prints out list without date on it.

   rows("2:2").select     selection.autofilter     activesheet.range("$a$3:$h$1000").autofilter field:=3, criteria1:="hans"     activesheet.range("$a$3:$h$1000").autofilter field:=7, criteria1:="open"     activesheet.range("$a$3:$h$1000").autofilter field:=6, criteria1:="<>1/0/1900", operator:=xlfiltervalues       activewindow.selectedsheets.printout copies:=1, collate:=true, _      ignoreprintareas:=false          rows("3:3").select     selection.autofilter 

problem criteria not work date 0-1-1900 filter out. doing wrong?

0-1-1900 date not exist. might problem.

just use

criteria1:=">1/1/1900"  

and should word fine.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -