Hi, I’m trying to cut from a sheet (A1 to B1), and paste it to the last blank row in Excel 2007. The code below that I’m using errors out. Where am I going wrong?
Thank you.
Thank you.
Rich (BB code):
Sub FindLastRow()
Dim LastRow As Long
Range("A1:B1").Select
Selection.Copy
If WorksheetFunction.CountA(Cells) > 0 Then
LastRow = Cells.Find(What:="*", After:=[A1], _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious).Row
ActiveCell.Offset(rowOffset:=1, columnOffset:=0).Activate
ActiveSheet.Paste
End If
End Sub