auto.pilot
Well-known Member
- Joined
- Sep 27, 2007
- Messages
- 734
- Office Version
- 365
- Platform
- Windows
Using XL07, I have the following, which is used to copy the last row, then paste in the next empty row.
For a differrent project, I need to copy the last two rows, then paste into in the next empty rows on the same sheet.
I've tried several variations, using offset but can't figure it out.
thanks for all suggestions.
jim
Code:
Sub AddRowPV()
' don't look below row 55
Range("A55").End(xlUp).EntireRow.Copy
Range("A55").End(xlUp).Select
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Range("A1").Select
End Sub
For a differrent project, I need to copy the last two rows, then paste into in the next empty rows on the same sheet.
I've tried several variations, using offset but can't figure it out.
thanks for all suggestions.
jim