Copy a column

L

Lzell

I want to create a macro which copies a range of cells in a column and
pastes it directly below the first set. The range can vary but it
always starts in the same cell.

Thankful for help
 
D

Dave Peterson

How do you know where it ends?

Dim myRows As Long
myRows = 5
With ActiveSheet
.Cells(3, 5).Resize(myRows).Copy _
Destination:=.Cells(3, 5).Offset(myRows)
End With

or maybe something like:

Range(ActiveCell, ActiveCell.End(xlDown)).Copy _
Destination:=ActiveCell.End(xlDown).Offset(1, 0)


It really depends.
 

Ask a Question

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.

Ask a Question

Top