Sub ee()
Dim F1 As Worksheet, F2 As Worksheet
Dim Plg1 As Range, Plg2 As Range
Dim Cel As Range
Dim C
Set F1 = ThisWorkbook.Sheets("Feuil1")
Set F2 = Workbooks("compare2.xls").Sheets("Feuil1")
Set Plg1 = F1.Range("A2:A" & F1.[A65000].End(xlUp).Row)
Set Plg2 = F2.Range("A2:A" & F2.[A65000].End(xlUp).Row)
For Each Cel In Plg1
a = Join(Application.Transpose(Application.Transpose(Cel.Resize(1, 3).Value)), ";")
Set C = Plg2.Find(Cel, LookAt:=xlWhole)
If Not C Is Nothing Then
Firstaddress = C.Address
b = Join(Application.Transpose(Application.Transpose(C.Resize(1, 3).Value)), ";")
If a <> b Then
Do
Set C = Plg2.FindNext(C)
If Not C Is Nothing Then
b = Join(Application.Transpose(Application.Transpose(C.Resize(1, 3).Value)), ";")
If a = b Then Exit Do
End If
Loop While Not C Is Nothing And C.Address <> Firstaddress
If a <> b Then Cel.Interior.ColorIndex = 6: Cel.Offset(0, 3) = 1
End If
Else
Cel.Interior.ColorIndex = 3: Cel.Offset(0, 3) = 1
End If
Next Cel
End Sub