I try to specify the range that I want the filter applied to:
dim myRng as range
with worksheets("sheet9999")
set myrng = .range("P1:N" & .cells(.rows.count,"P").end(xlup).row)
end with
myrng.autofilter
====
Sometimes if you have gaps in the data/rows, your filter won't do what you
expect.
Les Stout wrote:
>
> Hi, further to my last message, the filters work if i put filters in the
> whole of row 1 ? Is there a rule for this, as if i just put the filter
> in the three cells, they do not work ??
>
> Les Stout
>
> *** Sent via Developersdex http://www.developersdex.com ***
--
Dave Peterson