ich möchte mit einem Dropdown nur die Formatierung der Zelle ändern, aber nicht die Formel in der Zelle.
Würde das auch mit Gültigkeit funktionieren?
Meine Formatierung gem. Makrorekorder sieht so aus:
Sub erledigt()
Selection.FormatConditions.Delete
Selection.Font.ColorIndex = 10
Selection.Font.Bold = True
End Sub
Sub offen()
Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlGreater, _
Formula1:="=HEUTE()"
With Selection.FormatConditions(1).Font
.Bold = False
.Italic = False
.ColorIndex = xlAutomatic
End With
Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlLessEqual, _
Formula1:="=HEUTE()"
With Selection.FormatConditions(2).Font
.Bold = True
.Italic = False
.ColorIndex = 3
End With
End Sub
Ich freue mich auf Eure Hilfe.Viele Grüße,
Lissa