Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2016, 09:01 PM
kalak kalak is offline in each row mark duplicates Windows 10 in each row mark duplicates Office 2013
Novice
 
Join Date: Sep 2016
Posts: 1
kalak is on a distinguished road
Default

Code:
Sub dcmdc()
Dim d As Object, r, s
Set d = CreateObject("scripting.dictionary")
d.comparemode = 0
For Each r In ActiveSheet.UsedRange.Rows
    For Each s In r.Cells
        If Len(s) > 0 Then _
            If d(s.Value) = 1 Then s.Font.Color = vbRed  Else d(s.Value) = 1
    Next s
    d.RemoveAll
Next r
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 10:39 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