Point.MarkerBackgroundColorIndex (Word)

Cette propriété renvoie ou définit la couleur d’arrière-plan de marque sous forme d’index dans la palette de couleurs actuelle ou sous la forme d’une des constantes XlColorIndex suivantes: xlColorIndexAutomatic ou xlColorIndexNone. Les valeurs de retour possibles sont xlColorIndexAutomatic - Couleur automatique, xlColorIndexNone - Aucune couleur.

La propriété s’applique uniquement aux graphiques en courbes, aux graphiques à nuages de points et aux graphiques en radar.


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