wookmaster, here is a post by Chip Pearson to do what is selected
Use the following VBA code:
Sub MakeDupsRed()
Dim Rng As Range
For Each Rng In Selection.Cells
If Application.WorksheetFunction.CountIf( _
Selection, Rng) > 1 Then
Rng.Interior.ColorIndex = 3 'red
Else
Rng.Interior.ColorIndex = xlColorIndexNone
End If
Next Rng
End Sub
Select the range of cells and run the macro.
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com (e-mail address removed)
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 97
** remove news from my email address to reply by email **