Pasting into the last Row

F

Farley Granger

I'm writing a macro to copy data from one sheet and past it into the last
row of a different worksheet.
Since that worksheet contains several rows, how do I identify where that
last row is on the worksheet?
Dennis
 
B

BS

You can use this macro to find the last row in column A

sub lastrow()
Range("A65536").select
Selection.End(xlUp).Select
lastrow=activecell.row
End Sub

Burçin SARIHAN
 
D

Dave Peterson

Remember to add one if you don't want to overwrite the data existing in the
current lastrow.
 

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