Bonjour,

Je voudrais savoir comment faire pour comparé deux lignes en VBA grâce à une fonction SI

J'ai essayer ceci:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
    Dim H As Integer
    Dim I As Integer
    H = 3
    I = 4
    Do While Cells(H, 1) <> ""
        If Rows(H) = Rows(I) Then
                    Rows(H).EntireRow.Delete shift:=xlUp
        End If
        H = H + 1
        I = I + 1
    Loop
Merci d'avance