Hi,
Wondering if anyone can help with this....
I'm trying to make my code set up two filters on my sheet - the first is a date on column 39 (based on pre defined date dat minus 28days) and the second is to filter for containing not blank cells.
It seems to run ok but for some reason is coming up with nothing even when there are results.
Probably something obvious! but can anyone help?
Thanks
Tom
Wondering if anyone can help with this....
I'm trying to make my code set up two filters on my sheet - the first is a date on column 39 (based on pre defined date dat minus 28days) and the second is to filter for containing not blank cells.
Code:
With Sheets("OPS PLANNER")
.AutoFilterMode = False
With .Range("A9:AT5010")
.AutoFilter
.AutoFilter Field:=39, Criteria1:="<=" & dat - 28
.AutoFilter Field:=45, Criteria1:="<>"
End With
Exit Sub
It seems to run ok but for some reason is coming up with nothing even when there are results.
Probably something obvious! but can anyone help?
Thanks
Tom