Hallo manyana,
vielleicht so
Sub Tabellen_Vergleich04_2()
' es werden nur die markiert die im anderem Bereich nicht vorhanden sind
'**************************************************
'* H. Ziplies *
'* 11.01.10 *
'*
http://Hajo-Excel.de/ *
'**************************************************
Dim RaZelle2 As Range ' Variable Bereich 2
Application.ScreenUpdating = False ' Bildschirmaktualisierung aus
With Worksheets("Tabelle4")
For Each RaZelle2 In .Range("G10:G40") ' 1. Schleife alle Zellen Bereich2
If Application.CountIf(.Range("B10:B40"), RaZelle2) = 0 And RaZelle2 <> "" Then RaZelle2.Interior.ColorIndex = 6
Next RaZelle2
For Each RaZelle2 In .Range("B10:B40") ' 1. Schleife alle Zellen Bereich2
If Application.CountIf(.Range("G10:G40"), RaZelle2) = 0 And RaZelle2 <> "" Then RaZelle2.Interior.ColorIndex = 6
Next RaZelle2
End With
Application.ScreenUpdating = True ' Bildschirmaktualisierung ein
End Sub
Gruß Hajo