help with excel macro

  • Thread starter Thread starter paritoshmehta
  • Start date Start date
P

paritoshmehta

hi,

i wanted help on writing this code that will reset the last row to
predefined value(the next row)...... like lets say the last cell i
the column A is A25, then the macro will copy the whole row 26 an
paste it to row 25....

i hope i am making sense....

thanks for any help possible!!
 
Sub test()
With ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).EntireRow
.Copy .Offset(-1, 0)
End With
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