A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Range("E13").End(xlDown).Offset(1, 0).PasteSpecial xlPasteValues
I have this code, and its returning an application define/object defined error on the else statement.
If .End(xlDown) goes to the bottom of the sheet then .Offset(1, 0) is the next row below... => error.
Search always from the bottom of the sheet upwards.
Andreas.
Sub Btn_Add()
Selection.Copy
With Range("E13")
If IsEmpty(.Value) Then
.PasteSpecial xlPasteValues
Else
.Offset(Rows.Count - .Row).End(xlUp).Offset(1).PasteSpecial xlPasteValues
End If
End With
End Sub