Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-18-2016, 01:23 PM
KunleExcel KunleExcel is offline in each row mark duplicates Windows 8 in each row mark duplicates Office 2010 32bit
Novice
 
Join Date: Jun 2016
Location: Nigeria
Posts: 17
KunleExcel is on a distinguished road
Default Mark Duplicates

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
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 03:12 AM.


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