Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.31 KB

Excel.Point.MarkerBackgroundColor.md

File metadata and controls

48 lines (32 loc) · 1.31 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Point.MarkerBackgroundColor property (Excel)
vbaxl10.chm576084
vbaxl10.chm576084
Excel.Point.MarkerBackgroundColor
a283c8d2-08f2-0865-b8fe-26bc45d497d8
05/09/2019
medium

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

[!includeSupport and feedback]