Bonjour à toutes et à tous,
J'aimerais savoir si quelqu'un pourrait m'aider à remplacer "GoTo" dans ma macro spv
Voici le code :
Sub aa()
Dim i As Integer, j As Integer
Application.ScreenUpdating = False
For i = 2 To Range("A1048576").End(xlUp).Row
With Application.Workbooks("Antoine 2.xlsx").Sheets("Feuil1")
For j = 2 To .Range("C1048576").End(xlUp).Row
If Cells(i, 1) = .Cells(j, 3) And Cells(i, 2) = .Cells(j, 4) Then
Range(Cells(i, 1), Cells(i, 2)).Font.ColorIndex = 4 ' vert
GoTo Etiquette
End If
Next j
Range(Cells(i, 1), Cells(i, 2)).Font.ColorIndex = 3 ' rouge
Etiquette:
End With
Next i
End Sub
Cordialement Antoine