Hi all,
I am trying to get a macro to filter a table for anything before a value in cell C2, but when the macro runs it doesn't filter on anything, even though there are dates before the cell value.
Any help greatly appreciated.
Karl.
Sub Filter_Date()
'
' Macro4 Macro
'
'
ActiveSheet.ListObjects("Matter_List").Range.AutoFilter Field:=9, Criteria1 _
:="<" & Cells(2, 3), Operator:=xlAnd
Range("Matter_List[Bill Month 1]").Select
Selection.ClearContents
ActiveSheet.ListObjects("Matter_List").Range.AutoFilter Field:=9
End Sub
I am trying to get a macro to filter a table for anything before a value in cell C2, but when the macro runs it doesn't filter on anything, even though there are dates before the cell value.
Any help greatly appreciated.
Karl.
Sub Filter_Date()
'
' Macro4 Macro
'
'
ActiveSheet.ListObjects("Matter_List").Range.AutoFilter Field:=9, Criteria1 _
:="<" & Cells(2, 3), Operator:=xlAnd
Range("Matter_List[Bill Month 1]").Select
Selection.ClearContents
ActiveSheet.ListObjects("Matter_List").Range.AutoFilter Field:=9
End Sub