View Single Post
 
Old 09-29-2016, 09:01 PM
kalak kalak is offline Windows 10 Office 2013
Novice
 
Join Date: Sep 2016
Posts: 1
kalak is on a distinguished road
Default

Code:
Sub dcmdc()
Dim d As Object, r, s
Set d = CreateObject("scripting.dictionary")
d.comparemode = 0
For Each r In ActiveSheet.UsedRange.Rows
    For Each s In r.Cells
        If Len(s) > 0 Then _
            If d(s.Value) = 1 Then s.Font.Color = vbRed  Else d(s.Value) = 1
    Next s
    d.RemoveAll
Next r
End Sub
Reply With Quote