Je cherche =E0 mettre en couleur les doublons dans les deux mondico
merci
Sub Communs_2()
On Error Resume Next
For Lig =3D 3 To 100
Application.ScreenUpdating =3D False
a =3D Range("F" & Lig & ":H" & Lig)
Set MonDico1 =3D CreateObject("Scripting.Dictionary")
For Each c In a
If Not MonDico1.exists(c) Then MonDico1.Add c, c
Next c
b =3D Range("K" & Lig & ":P" & Lig)
Set MonDico2 =3D CreateObject("Scripting.Dictionary")
For Each c In b
If MonDico1.exists(c) Then If Not MonDico2.exists(c) Then=20
MonDico2.Add c, c
Next c
Bonjour. Ca a l'air de fonctionner, sauf la ligne : b = Range("K" & Lig & "" & Lig) Tu devrais mettre quelque chose comme : b = Range("K" & Lig & ":M" & Lig) Daniel
Bonjour
Je cherche à mettre en couleur les doublons dans les deux mondico
merci
Sub Communs_2()
On Error Resume Next
For Lig = 3 To 100
Application.ScreenUpdating = False
a = Range("F" & Lig & ":H" & Lig)
Set MonDico1 = CreateObject("Scripting.Dictionary") For Each c In a If Not MonDico1.exists(c) Then MonDico1.Add c, c Next c
b = Range("K" & Lig & ":P" & Lig)
Set MonDico2 = CreateObject("Scripting.Dictionary") For Each c In b If MonDico1.exists(c) Then If Not MonDico2.exists(c) Then MonDico2.Add c, c Next c
Bonjour.
Ca a l'air de fonctionner, sauf la ligne :
b = Range("K" & Lig & "" & Lig)
Tu devrais mettre quelque chose comme :
b = Range("K" & Lig & ":M" & Lig)
Daniel
Bonjour
Je cherche à mettre en couleur les doublons dans les deux mondico
merci
Sub Communs_2()
On Error Resume Next
For Lig = 3 To 100
Application.ScreenUpdating = False
a = Range("F" & Lig & ":H" & Lig)
Set MonDico1 = CreateObject("Scripting.Dictionary")
For Each c In a
If Not MonDico1.exists(c) Then MonDico1.Add c, c
Next c
b = Range("K" & Lig & ":P" & Lig)
Set MonDico2 = CreateObject("Scripting.Dictionary")
For Each c In b
If MonDico1.exists(c) Then If Not MonDico2.exists(c) Then MonDico2.Add
c, c
Next c
Bonjour. Ca a l'air de fonctionner, sauf la ligne : b = Range("K" & Lig & "" & Lig) Tu devrais mettre quelque chose comme : b = Range("K" & Lig & ":M" & Lig) Daniel
Bonjour
Je cherche à mettre en couleur les doublons dans les deux mondico
merci
Sub Communs_2()
On Error Resume Next
For Lig = 3 To 100
Application.ScreenUpdating = False
a = Range("F" & Lig & ":H" & Lig)
Set MonDico1 = CreateObject("Scripting.Dictionary") For Each c In a If Not MonDico1.exists(c) Then MonDico1.Add c, c Next c
b = Range("K" & Lig & ":P" & Lig)
Set MonDico2 = CreateObject("Scripting.Dictionary") For Each c In b If MonDico1.exists(c) Then If Not MonDico2.exists(c) Then MonDico2.Add c, c Next c