Hi guys,
I am trying to autofilter (using vba) a table and exclude the 'others' and 'totals' rows, located at bottom of table. I have set the autofilter over the range I want (with or without the extra rows being present), and excel helpfully expands the range to cover the extra rows.
how can I stop this behavior and lock the range to the one I specify (this works if I do it manually, but not if I use 'selection' i.e.
[VBA]mySheet.Range("A10:M" & numRows + 10).Select
Selection.AutoFilter 'set Filter field on table range[/VBA]
ends up pointing to A10:M22 instead of A10:M20 (numrows = 10 in this case)
thanks
Tim