Hi,
I am trying to autoFilter a column by date. I have a whole bunch of dates inthis column. Out of date would be to filter the dates that are older than fiveyears old. and Expires within 6 months would be filter the dates between 4.5years and 5 years. Both filters from todays date. This is the code I amcurrently running but it hides all.
I am trying to autoFilter a column by date. I have a whole bunch of dates inthis column. Out of date would be to filter the dates that are older than fiveyears old. and Expires within 6 months would be filter the dates between 4.5years and 5 years. Both filters from todays date. This is the code I amcurrently running but it hides all.
Code:
Sub RoundedRectangle12_Click()
Range("a5").Select
Selection.AutoFilter Field:=7, Criteria1:=">=Date-365*5+1"
End Sub