Point.MarkerForegroundColorIndex (Word)

Zurückgeben oder Festlegen der Vordergrundfarbe des Marker als Index in der aktuellen Farbpalette oder als eine der folgenden XlColorIndex -Konstanten: xlColorIndexAutomatic oder xlColorIndexNone wird. Mögliche Rückgabewerte sind xlColorIndexAutomatic - Automatische Farbe, xlColorIndexNone - Keine Farbe.

Diese Eigenschaft gilt nur für Linien-, Punkt (XY)- und Netzdiagramme.


With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 With .Chart.SeriesCollection(1).Points(2) 
 ' Set the background color to green. 
 .MarkerBackgroundColorIndex = 4 
 
 ' Set the foreground color to red. 
 .MarkerForegroundColorIndex = 3 
 End With 
 End If 
End With