Point.MarkerBackgroundColor property (Excel)

Sets the marker background color as an RGB value or returns the corresponding color index value. The background color is displayed as the Fill color in the application. Applies only to line, scatter, and radar charts. Read/write Long.

Syntax

expression.MarkerBackgroundColor

expression A variable that represents a Point object.

Example

This example sets the marker background (fill) and foreground (border) colors for the first point in series one on Chart1.

With Charts("Chart1").SeriesCollection(1).Points(1) 
 .MarkerBackgroundColor = RGB(0,255,0) ' green fill
 .MarkerForegroundColor = RGB(255,0,0) ' red border
End With

This example sets the marker colors to automatic for the second point in series one on Chart1.

With Charts("Chart1").SeriesCollection(1).Points(2) 
 .MarkerBackgroundColor = -1 ' automatic fill
 .MarkerForegroundColor = -1 ' automatic border
End With

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.