![]() |
|
#1
|
|||
|
|||
![]()
This one makes distinction between smith and Smith
Sub MarkDups() Dim SRange As Range Set SRange = Range("A1", Range("A1").End(xlToRight)) Dim c As Range For Each c In SRange Set c = SRange.Find(c, , , xlWhole, , , True) If Not c Is Nothing Then Dim firstAddress As String firstAddress = c.Address Do Set c = SRange.FindNext(c) If c.Address <> firstAddress Then c.Font.Color = vbRed End If Loop While Not c Is Nothing And c.Address <> firstAddress End If Next c End Sub |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sequencing duplicates | balajigade | Excel Programming | 3 | 10-04-2015 03:31 PM |
![]() |
bandaanders | Excel Programming | 2 | 09-02-2015 08:15 AM |
![]() |
saurabhlotankar | Excel Programming | 14 | 05-26-2015 10:13 AM |
Mail duplicates | mixy | Outlook | 0 | 02-10-2011 12:54 AM |
![]() |
zxmax | Excel | 1 | 09-29-2006 08:29 PM |