Hello all
This line of code is part of a larger piece for emailing out a group email with an attached workbook which works fine.
The range is column "C" to Column "Z"
It filters on column "W" (Field 21) and the criteria is "Out"
I need to add an additional filter on this if possible
In column "Z" will be a date
I want to only see dates that are less than or equal to todays date but I am struggling to modify the filter.
Any help on this please would be great
This line of code is part of a larger piece for emailing out a group email with an attached workbook which works fine.
The range is column "C" to Column "Z"
It filters on column "W" (Field 21) and the criteria is "Out"
I need to add an additional filter on this if possible
In column "Z" will be a date
I want to only see dates that are less than or equal to todays date but I am struggling to modify the filter.
Code:
FilterRange.AutoFilter field:=FieldNum, Criteria1:=Cws.Cells(rnum, 1).Value
FilterRange.AutoFilter field:=21, Criteria1:="*Out*"
Any help on this please would be great