ich habe das übliche Problem das Excel eine bedingte Zellenformatierung nur mit 3 bzw. 4 Formatvorgaben kann.
Nun habe ich die Formatierung in VBA programmiert, jedoch möchte ich, dass die Zelle sofort nach der Eingabe ohne händischen Aufruf durch mein Makro formatiert werden. D.h. das Makro sollte automatisch bei anklicken der Zelle ausgeführt werden.
Marc
p.s. mein Code ist bis jetzt:
Public Function Farben()
Select Case Cells(11, 1)
Case Is = "1"
Cells(11, 1).Interior.ColorIndex = 1
Cells(20, 1).Interior.ColorIndex = 1
Case Is = "2"
Cells(11, 1).Interior.ColorIndex = 2
Cells(20, 1).Interior.ColorIndex = 2
Case Is = "3"
Cells(11, 1).Interior.ColorIndex = 3
Cells(20, 1).Interior.ColorIndex = 3
Case Is = "4"
Cells(11, 1).Interior.ColorIndex = 4
Case Is = "5"
Cells(11, 1).Interior.ColorIndex = 5
Case Is = "6"
Cells(11, 1).Interior.ColorIndex = 6
Case Is = "7"
Cells(11, 1).Interior.ColorIndex = 7
Case Is = "8"
Cells(11, 1).Interior.ColorIndex = 8
Case Is = "9"
Cells(11, 1).Interior.ColorIndex = 9
Case Is = "10"
Cells(11, 1).Interior.ColorIndex = 10
Case Is = "11"
Cells(11, 1).Interior.ColorIndex = 11
Case Is = "12"
Cells(11, 1).Interior.ColorIndex = 12
End Select