Ich bräuchte ein Macro das in kolonne 4 alle gleichen Zahlen sucht und dann die letzte Zeile unterstreicht.
Dann die nächste Gruppe u. s.w.
Gruß Lucien
Sub Zahlensuche()
Dim rng As Range
Dim Zahl As Range
Dim gef As Range
Dim zähl As Long
Set rng = Range("D:D").SpecialCells(xlCellTypeConstants, xlNumbers)
'rng.Interior.Color = xlNone
For Each Zahl In rng
Set gef = Zahl 'ini
Do
Set gef = rng.Find(Zahl, gef)
zähl = WorksheetFunction.CountIf(Range(gef, Range("D" & rng.Rows.Count)), Zahl)
If zähl = 1 Then
'gef.Interior.ColorIndex = 4
gef.Font.Underline = True
Exit Do
End If
Loop While gef.Address > Zahl.Address
Next Zahl
End Sub