[COLOR="Navy"]Sub[/COLOR] MG20Jun28
[COLOR="Navy"]Dim[/COLOR] Rng [COLOR="Navy"]As[/COLOR] Range, Dn [COLOR="Navy"]As[/COLOR] Range, n [COLOR="Navy"]As[/COLOR] [COLOR="Navy"]Long,[/COLOR] t
[COLOR="Navy"]Set[/COLOR] Rng = Range("A1", Range("A" & Rows.Count).End(xlUp))
[COLOR="Navy"]With[/COLOR] CreateObject("scripting.dictionary")
.CompareMode = vbTextCompare
Range("A:B").NumberFormat = "@"
[COLOR="Navy"]For[/COLOR] [COLOR="Navy"]Each[/COLOR] Dn [COLOR="Navy"]In[/COLOR] Rng
Dn.Value = CStr(Dn.Value)
[COLOR="Navy"]For[/COLOR] n = 1 To Len(Dn.Value)
[COLOR="Navy"]If[/COLOR] Not .Exists(Dn.Characters(n, 1).Text) [COLOR="Navy"]Then[/COLOR]
.Add Dn.Characters(n, 1).Text, ""
[COLOR="Navy"]Else[/COLOR]
.Remove Dn.Characters(n, 1).Text
[COLOR="Navy"]End[/COLOR] If
[COLOR="Navy"]Next[/COLOR] n
[COLOR="Navy"]For[/COLOR] n = 1 To Len(Dn.Offset(, 1).Value)
[COLOR="Navy"]If[/COLOR] Not .Exists(Dn.Offset(, 1).Characters(n, 1).Text) [COLOR="Navy"]Then[/COLOR]
.Add Dn.Offset(, 1).Characters(n, 1).Text, ""
[COLOR="Navy"]Else[/COLOR]
.Remove Dn.Offset(, 1).Characters(n, 1).Text
[COLOR="Navy"]End[/COLOR] If
[COLOR="Navy"]Next[/COLOR] n
[COLOR="Navy"]For[/COLOR] n = 1 To Len(Dn.Value)
[COLOR="Navy"]If[/COLOR] .Exists(Dn.Characters(n, 1).Text) [COLOR="Navy"]Then[/COLOR]
Dn.Characters(n, 1).Font.ColorIndex = 3
[COLOR="Navy"]End[/COLOR] If
[COLOR="Navy"]Next[/COLOR] n
[COLOR="Navy"]For[/COLOR] n = 1 To Len(Dn.Offset(, 1).Value)
[COLOR="Navy"]If[/COLOR] .Exists(Dn.Offset(, 1).Characters(n, 1).Text) [COLOR="Navy"]Then[/COLOR]
Dn.Offset(, 1).Characters(n, 1).Font.ColorIndex = 3
[COLOR="Navy"]End[/COLOR] If
[COLOR="Navy"]Next[/COLOR] n
.RemoveAll
[COLOR="Navy"]Next[/COLOR]
[COLOR="Navy"]End[/COLOR] With
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]Sub[/COLOR]