This should filter serial dates in column Q regardless of the date format as long as they are serial dates.
Sub Exclude_Current_Month_Filter()
Dim ws As Worksheet, d1 As Long, d2 As Long
d1 = Date - Day(Date) 'End of last month
d2 = DateSerial(Year(Date), Month(Date) + 1, 1) 'Begining of next month
For Each ws In Worksheets
If ws.ListObjects.Count > 0 Then
ws.ListObjects(1).Range.AutoFilter 'clear previous filer if any
ws.ListObjects(1).Range.AutoFilter 17, "<=" & d1, xlOr, ">=" & d2 'Filter exclude current month column Q
End If
Next
End Sub
Bookmarks