Font.ColorIndex (Excel)

Gibt einen Variant-Wert zurück, der die Schriftfarbe darstellt, oder legt diesen fest. Mögliche Rückgabewerte sind xlColorIndexAutomatic - Automatische Farbe, xlColorIndexNone - Keine Farbe.

Die Farbe wird als Indexwert in der aktuellen Farbpalette oder als eine der folgenden XlColorIndex-Konstanten angegeben: xlColorIndexAutomatic oder xlColorIndexNone.


ActiveCell.Font.ColorIndex = xlColorIndexAutomatic