da Excel Standardmäßig nur drei bedingte Formatierungen zulässt, habe ich folgendes Makro im Internet gefunden, welches ich auf die Zelle C10 anwende.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
With Range("C10")
If .Value = "G" Then
.Interior.ColorIndex = 4
.Font.ColorIndex = 4
ElseIf .Value = "R" Then
.Interior.ColorIndex = 3
.Font.ColorIndex = 3
ElseIf .Value = "TU" Then
.Interior.ColorIndex = 8
.Font.ColorIndex = 1
ElseIf .Value = "So" Then
.Interior.ColorIndex = 15
.Font.ColorIndex = 15
ElseIf .Value = "Sa" Then
.Interior.ColorIndex = 15
.Font.ColorIndex = 15
ElseIf .Value = "F" Then
.Interior.ColorIndex = 15
.Font.ColorIndex = 15
Else
.Interior.ColorIndex = 2
.Font.ColorIndex = 1
End If
End With
End Sub
Soweit so gut: Aber wie kann ich diese Formatierung auf die Zellen C10:AR29 anwenden, ohne dieses Makro für jede Zelle (840 mal) einzeln einzugeben?
Danke für Eure Hilfe
MfG Beppo