Hello all,
I have an autofilter that I am trying to have match yesterdays date, and I am struggling to make it work. I am trying to show all values that do not match yesterdays date so I can delete all those rows.
I have an autofilter that I am trying to have match yesterdays date, and I am struggling to make it work. I am trying to show all values that do not match yesterdays date so I can delete all those rows.
VBA Code:
Selection.AutoFilter
ActiveSheet.Range("AU1:AU" & Lastrow).AutoFilter Field:=47, Criteria1:="<>Format(Date - 1, "m/d/yyyy")", Operator:=xlFilterValues