Format related procedures in class ChartFont (PowerPoint VBA)

This page presents procedures from class ChartFont related to the theme Format: Color, ColorIndex and FontStyle


Returns or sets the primary color of the object.

ActivePresentation.Slides(1).Shapes(1).Chart.DataTable.Font.Color = RGB(0,0,255)'blue


Returns or sets the color of the font.

The color is specified as an index value into the current color palette, or as one of the following XlColorIndex constants:

ActivePresentation.Slides(1).Shapes(1).Chart.DataTable.Font.ColorIndex = 6


Returns or sets the font style. Read/write String.

Changing this property may affect other ChartFont properties (such as Bold and Italic).

ActivePresentation.Slides(1).Shapes(1).Chart.DataTable.Font.FontStyle = "Bold Italic"