Dim DEST As Range
For i = 1 To dernligne
If Sheets("Ongoing").Cells(i, 1) = "COM" Then
If Sheets("Completed").Range("A4") = "" Then
Set DEST = Sheets("Completed").Range("A4")
Else
Set DEST = Sheets("Completed").Cells(Application.Rows.Count, 1).End(xlUp).Offset(1, 0)
End If
Sheets("Ongoing").Cells(i, 1).EntireRow.Copy DEST
End If
Next i