No, you don't need to select the range. To copy it you could use
![]()
Sub x() Dim rng As Range Set rng = Range("D5", Range("K" & Rows.Count).End(xlUp)).SpecialCells(xlCellTypeVisible) rng.Copy Sheet2.Range("A1") End Sub
No, you don't need to select the range. To copy it you could use
![]()
Sub x() Dim rng As Range Set rng = Range("D5", Range("K" & Rows.Count).End(xlUp)).SpecialCells(xlCellTypeVisible) rng.Copy Sheet2.Range("A1") End Sub
Thank you very much Stephen! The code works perfect.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks