I am trying to create vba code which will automatically filter on a specific currency = 'GBP' (column 16) and where the maturity date (column 7) is less then today's date. The code does the filtering for the currency but not for the date criteria. Am at a point where I am just spinning my wheels. Hoping someone can assist in determining what I am doing wrong. Thank you for your time in advance.
Range("A1:Q1").Select Selection.AutoFilter ActiveSheet.Range("$A$1:$Q$1000000").AutoFilter Field:=16, Criteria1:="GBP" ActiveSheet.Range("$A$1:$Q$1000000").AutoFilter Field:=7, Criteria1:= _ "<" & Now(), Operator:=xlAnd