Hallo,
ich habs mal mit folgender Variante probiert, die mir logisch erscheint, aber nicht läuft....
Public Sub Doppelte_Rot()
Dim lngZeile As Long
Dim lngZeilenSprung As Long
Dim strSuchwert As String, strSuchwert1 As String
lngZeile = Cells(Rows.Count, 5).End(xlUp).Row
For lngZeilenSprung = lngZeile To 8 Step -1
strSuchwert = Cells(lngZeilenSprung, 5).Value
strSuchwert1 = Cells(lngZeilenSprung, 6).Value
If Application.WorksheetFunction.CountIf(Range(Cells(1, 5), Cells(lngZeile, 5)), strSuchwert) <> 1 _
And CountIf(Range(Cells(1, 6), Cells(lngZeile, 6)), strSuchwert1) <> 1 Then
Cells(lngZeilenSprung, 5).Interior.ColorIndex = 45
End If
Next lngZeilenSprung
End Sub
Der Fehler muss irgendwie in der Funktion liegen...???
Andreas