I have created a workbook to track open and completed work orders. The code below allows for me to move the completed work order from a row on the open sheet to the next available row on the completed sheet by entering "completed". Upon doing this it leaves and open row with one column that says complete. How do i modify the code to delete that row?
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("P:P")) Is Nothing Then Exit Sub
If Target.Value = "Complete" Then Range(Cells(Target.Row, "A"), Cells(Target.Row, "O")).Cut _
Sheets("Completed").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("P:P")) Is Nothing Then Exit Sub
If Target.Value = "Complete" Then Range(Cells(Target.Row, "A"), Cells(Target.Row, "O")).Cut _
Sheets("Completed").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
End Sub