Avec ce code je recupere les doublons de la colonne B a A
Sub DoublonsEntre2ColonnesRapport2()
Set d1 = CreateObject("Scripting.Dictionary")
Set plage1 = Range("b2:b" & [a65000].End(xlUp).Row)
Set plage2 = Range("a2:a" & [b65000].End(xlUp).Row)
For Each c In plage2
d1.Item(c.Value) = d1.Item(c.Value) & c.Address & "-"
Next c
I = 2
For Each c In plage1
If d1.exists(c.Value) Then
Cells(I, "P") = c
Cells(I, "Q") = c.Address
Cells(I, "R") = d1.Item(c.Value)
I = I + 1
End If
Next c
End Sub
comment récupérer le reste des infos (c'est a dire les non doublons) a part ?
Demandez le si je dois joindre un fichier je ferais un exemple