ahowardmiller
New Member
- Joined
- Nov 22, 2017
- Messages
- 3
Everything in my code works perfectly except the line marked below. Can someone help me figure out how to get it to find the next blank row and then paste. If I take the line of code out, it works but it replaces the previously saved data.
Thank you for your time,
Aaron
Code:
Private Sub CommandButton1_Click()
With ActiveCell
Range(Cells(.Row, "A"), Cells(.Row, "N")).Select
End With
Selection.Copy
Sheets("Completed").Select
[COLOR=#ff0000] Cells(Rows.Count, "A").End(xlUp)(2).Select ** I get a range failed error 1004 here[/COLOR].
ActiveSheet.Paste
Sheets("Sheet1").Select
Application.CutCopyMode = False
Selection.ClearContents
End Sub
Thank you for your time,
Aaron