Martin King
IS-IT--Management
Hi, I'm looking for some help with the above. I have:
Set WSNew = Worksheets.Add(After:=Sheets(ActiveSheet.Index))
With My_Range.Parent.AutoFilter.range
End With
Now the line at *1 applies the filter as expected, however when I call the line at *2 it pastes everything from the table not just the filtered results. Everything I can find when I search forums etc is that the autofilter.range.copy should copy only the visible rows unless more than 8192. My unfiltered table is 3500 rows. It's got me stumped.
Many thanks in advance.
Martin
Set WSNew = Worksheets.Add(After:=Sheets(ActiveSheet.Index))
(*1) My_Range.AutoFilter Field:=5, Criteria1:="=ARBO" With My_Range.Parent.AutoFilter.range
(*2) .Copy Destination:=WSNew.range("A1") End With
Now the line at *1 applies the filter as expected, however when I call the line at *2 it pastes everything from the table not just the filtered results. Everything I can find when I search forums etc is that the autofilter.range.copy should copy only the visible rows unless more than 8192. My unfiltered table is 3500 rows. It's got me stumped.
Many thanks in advance.
Martin