You are on page 1of 2

Sub SUPP_LIGNE_REPETE()

Dim i As Integer

Dim lastrow As Integer

lastrow = Range("A" & Rows.Count).End(xlUp).Row

For i = lastrow To 2 Step -1

If Range("A" & i) <> "" And Range("B" & i) <> "" Then

If Range("A" & i) = Range("A" & i - 1) And Range("B" & i) = Range("B" & i - 1) Then

Rows(i).Select

Selection.Delete Shift:=xlUp

End If

End If

Next i

End Sub

You might also like