![]() |
|
#1
|
||||
|
||||
![]() Try: Code:
Sub Demo() Application.ScreenUpdating = False Dim lRow As Long, lCol As Long, r As Long, c As Long With ActiveSheet .UsedRange With .Cells.SpecialCells(xlCellTypeLastCell) lRow = .Row lCol = .Column End With For r = 1 To lRow For c = 2 To lCol If Application.WorksheetFunction.CountIf(.Range(.Cells(r, 1), .Cells(r, c)), .Cells(r, c).Value) > 1 Then .Cells(r, c).Font.ColorIndex = 3 End If Next Next End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
Great! Thank you! This helps me a lot!
(only thing is: makro does not make a distinction between "smith" and "Smith", but I can live with that) |
![]() |
|
![]() |
||||
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 |