ich habe einen Codeschnipsel:
With Range("A5:A78")
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:="=WENN(B5=""IW"";1;0)"
.FormatConditions(1).Interior.ColorIndex = 6
.FormatConditions.Add Type:=xlExpression, Formula1:="=WENN(B5=""KW"";1;0)"
.FormatConditions(2).Interior.ColorIndex = 37
.FormatConditions.Add Type:=xlExpression, Formula1:="=WENN(B5=""SA"";1;0)"
.FormatConditions(3).Interior.ColorIndex = 20
End With
Wenn ich ihn ausführe, und dann mir die Formeln (unter bedingte Formatierung) anschaue, dann steht da nicht die obere formel, sondern: =WENN(B9="SA";1;0)
Warum B9? Ich habe doch eindeutig gesagt B5!?
Wo ist der Fehler drin?
Vielen Dank
Gruß
Steffen D