I am working in VBA for Excel
I need to copy some from one sheet to another, but only on data that has been selected by an AutoFilter, does anyone know how to select only the rows that have been selected by the filters.
This is the equivalent of Edit >> GoTo >> Special >> Visible Cells Only
To do this in VBA, select the range that contains the list (or replace the word "Selection" with a reference to the range), then use the following statement to copy only the visible (filtered) cells:
[tt]
Selection.SpecialCells(xlCellTypeVisible).Select
[tt]
Good luck, SteveB.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.