hättet Ihr mir einen guten Lesetip für "Bedingte Formatierung festlegen" via VBA festlegen?
Den Gültigkeitsbereich nimmt der Macrorekorder nicht mit...
Merci und Gruss
Aston
Sub Makro1()
' Makro1 Makro
Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlBetween, _
Formula1:="=5", Formula2:="=10"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 5287936
.TintAndShade = 0
End With
Selection.FormatConditions(1).StopIfTrue = False
End Sub
Cells(1, 1).FormatConditions(1).ModifyAppliesToRange Range:=Range(Cells(1, 1), Cells(5, 10))