R
Ron Luzius
I need to do an "and" filter on a date field in Excel 2003.
I have tried this and other variations.
Dim Current_Date, Previous_Date
Current_Date = Date
Previous_Date = Date - 14
'
Selection.AutoFilter Field:=1, Criteria1:="=>"Previous_Date,
Operator:=xlAnd _
, Criteria2:="=<"Current_Date
Any ideas how to get the dynamic dates to work in the Autofilter?
Thanks!
I have tried this and other variations.
Dim Current_Date, Previous_Date
Current_Date = Date
Previous_Date = Date - 14
'
Selection.AutoFilter Field:=1, Criteria1:="=>"Previous_Date,
Operator:=xlAnd _
, Criteria2:="=<"Current_Date
Any ideas how to get the dynamic dates to work in the Autofilter?
Thanks!