Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-18-2016, 12:07 AM
macropod's Avatar
macropod macropod is online now in each row mark duplicates Windows 7 64bit in each row mark duplicates Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default


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]
Reply With Quote
  #2  
Old 06-18-2016, 12:15 AM
roderh roderh is offline in each row mark duplicates Windows 7 64bit in each row mark duplicates Office 2010 32bit
Novice
in each row mark duplicates
 
Join Date: May 2014
Posts: 17
roderh is on a distinguished road
Default

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)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sequencing duplicates balajigade Excel Programming 3 10-04-2015 03:31 PM
in each row mark duplicates VBA: Delete duplicates in each row bandaanders Excel Programming 2 09-02-2015 08:15 AM
in each row mark duplicates Removing duplicates saurabhlotankar Excel Programming 14 05-26-2015 10:13 AM
Mail duplicates mixy Outlook 0 02-10-2011 12:54 AM
in each row mark duplicates sum of duplicates zxmax Excel 1 09-29-2006 08:29 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:49 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft