Sub Zellen_faerben()
Dim Zelle As Range
Dim Bereich As Range
Set Bereich = Range("N4:N175")
For Each Zelle In Bereich
If Zelle <> "" Then
Select Case Zelle
Case 0 To 39
Zelle.Interior.ColorIndex = 3
Case 40 To 69
Zelle.Interior.ColorIndex = 10
Case 70 To 89
Zelle.Interior.ColorIndex = 6
Case Is > 89
Zelle.Interior.ColorIndex = 4
End Select
Zelle.Interior.Pattern = xlSolid ' ist eigentlich nicht erforderlich da Standard
End If
Next Zelle
Set Zelle = Nothing
Set Bereich = Nothing
End Sub
Bedingte Formatierung nach Filterauswahl
dirkmuel 20.03.2007 - 273 Hits - 2 Antworten
Bedingte formatierung im Excel
o.burgunder 22.03.2007 - 416 Hits - 6 Antworten
Bedingte Formatierung
Manolli 24.03.2007 - 189 Hits - 5 Antworten
Text in durch bedingte Formatierung eingefärbte Zelle
kvtv 20.02.2008 - 220 Hits - 4 Antworten
Bedingte Formatierung
fedjo 22.05.2008 - 211 Hits - 9 Antworten