Try something like the following. Change the lines marked with <<
to the appropriate ranges.
Dim DestRng As Range
Dim Rng As Range
Set DestRng = Worksheets("Sheet2").Range("A1") '<<
For Each Rng In Range("A1:A10") '<<
If Rng.Value <> "" Then
Rng.EntireRow.Copy Destination:=DestRng
Set DestRng = DestRng(2, 1)
End If
Next Rng
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.