Färben, wenn größer oder kleiner
Jockel
ich habe eine Spalte (H) mit Prozentangaben, ich habe sie momentan noch als Zahl formatiert
(zB 0,8 oder 0,33 oder 0,5.....)
Nun möchte ich die Werte färben, wenn sie zwischen bestimmten Angaben liegen:
If Cells(x, 13).Value > "0.01" And Cells(x, 13).Value < "0.20" Then Cells(x, 8).Font.Color = RGB(255, 0, 0)
If Cells(x, 13).Value > "0.20" And Cells(x, 13).Value < "0.40" Then Cells(x, 8).Font.Color = RGB(255, 99, 71)
If Cells(x, 13).Value > "0.40" And Cells(x, 13).Value < "0.60" Then Cells(x, 8).Font.Color = RGB(255, 215, 0)
If Cells(x, 13).Value > "0.80" And Cells(x, 13).Value < "0.99" Then Cells(x, 8).Font.Color = RGB(127, 255, 0)
If Cells(x, 13).Value > "1" Then Cells(x, 8).Font.Color = RGB(0, 139, 0)
Wenn ich den Code laufen lasse, passiert garnichts. Was mache ich denn falsch ?
Danke
Jockel