macro to pick last row in a range

  • Thread starter Thread starter vikram
  • Start date Start date
V

vikram

i need help on this

do we have a macro which finds the last row in a range and picks up th
last row and insert it below first row of the range


thank u al
 
try this
Sub moveit()
x = Cells(Rows.Count, "a").End(xlUp).Row
Rows(x).Cut
Rows("2:2").Insert shift:=xlDown
End Sub
 

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