Aralık fareyi bitişik & tek bir sütundur.Yinelenen değerleri tek bir aralıkta vurgula
Yukarıdaki RANGE için yinelenen girişleri vurgulamak istiyorum. VBA'm şu şekildedir, ancak amaçlandığı gibi çalışmıyor.
Sub CompareSingleRange()
Dim rangeToUse1 As Range, cell1 As Range
Dim wf As WorksheetFunction
Set wf = Application.WorksheetFunction
' Assume Selection is contiguous
Set rangeToUse1 = Selection
For Each cell1 In rangeToUse1
If wf.CountIf(rangeToUse1, cell1) > 1 Then
cell1.Interior.ColorIndex = 38
End If
Next cell1
End Sub
Mükemmel. Bu bile, önceki çözümler RANGE boyutunun – nightcrawler