Mega Code Archive

 
Categories / VisualBasic Script / Excel
 

Background and Foreground color

Public Sub TestPoint()     Dim myPoint As Point     Set myPoint = ActiveSheet.ChartObjects(1).Chart.SeriesCollection(1).Points(3)     With myPoint         .ApplyDataLabels xlDataLabelsShowValue         .MarkerBackgroundColor = RGB(1, 2, 3)         .MarkerForegroundColor = RGB(11, 22, 33)     End With End Sub