paste values to last row

  • Thread starter Thread starter patojo
  • Start date Start date
P

patojo

Does anyone have a VB script that will copy and paste values from one
row to the last row on a worksheet?
 
I used column A to find the last row of the worksheet and I pasted under that
last row.

Dim NextRow as long
dim RowToCopy as range

set rowtocopy = activecell.entirerow

with worksheets("somesheetnameHere")
Nextrow = .cells(.rows.count,"A").end(xlup).row + 1
rowtocopy.copy _
destination:=.cells(nextrow,"A")
end with
 

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

Back
Top