Hi,
Can anyone advise on how to enter date() or today() criteria into the Excel vba filter? I'm trying to exclude rows that have been added within the last 3 days.
This command runs without error but does nothing:
wb1.Sheets("Master").Range("A2:AS2").AutoFilter Field:=dateAddedToMasterCol, Criteria1:="<>date()" _
Operator:=xlAnd, Criteria2:="<>date()-1" , etc., etc.
Any help would be much appreciated.
K
Can anyone advise on how to enter date() or today() criteria into the Excel vba filter? I'm trying to exclude rows that have been added within the last 3 days.
This command runs without error but does nothing:
wb1.Sheets("Master").Range("A2:AS2").AutoFilter Field:=dateAddedToMasterCol, Criteria1:="<>date()" _
Operator:=xlAnd, Criteria2:="<>date()-1" , etc., etc.
Any help would be much appreciated.
K