1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| For i = 1 To dercol
If Cells(1, i) Like "xxx*" Then 'si colonne xxx
For j = 2 To derl
For k = j + 1 To derl
If Cells(j, i) <> 0 And Cells(k, i) <> 0 Then
If j <> k Then
If Cells(j, i) <> Cells(k, i) Then
texte = Replace(Replace(Replace(Replace(Replace(Cells(j, i), " ", ""), "_", ""), "/", ""), "+", ""), "-", "")
texte1 = Replace(Replace(Replace(Replace(Replace(Cells(k, i), " ", ""), "_", ""), "/", ""), "+", ""), "-", "")
If texte = texte1 Then
l = l + 1
Cells(j, i).Interior.ColorIndex = 3
Cells(k, i).Interior.ColorIndex = 3
End If
End If
End If
End If
Next k
Next j
End If
Next i |
Partager