Class ChartFormat (PowerPoint VBA)

Provides access to the OfficeArt formatting for chart elements.


To use a ChartFormat class variable it first needs to be instantiated, for example

Dim cft as ChartFormat
Set cft = ActiveWindow.RangeFromPoint.Chart.Format

The following procedures can be used to set variables of type ChartFormat: Axis.Format, AxisTitle.Format, Chart.Format, ChartArea.Format, ChartTitle.Format, DataLabel.Format, DataLabels.Format, DataTable.Format, DisplayUnitLabel.Format, DownBars.Format, DropLines.Format, ErrorBars.Format, Floor.Format, Gridlines.Format, HiLoLines.Format, LeaderLines.Format, Legend.Format, LegendEntry.Format, LegendKey.Format, PlotArea.Format, Point.Format, Series.Format, SeriesLines.Format, TickLabels.Format, Trendline.Format, UpBars.Format and Walls.Format


Adjustments returns an Adjustments object that contains a collection of adjustment values for the specified Chart Format object.

Dim adjsAdjustments As Adjustments
Set adjsAdjustments = ActiveWindow.RangeFromPoint.Chart.Format.Adjustments

AutoShapeType returns or sets the auto shape type of the specified object.

ActiveWindow.RangeFromPoint.Chart.Format.AutoShapeType = msoShapeMixed

Fill returns a FillFormat object for the parent chart element that contains fill formatting properties for the chart element.

Dim fftFill As FillFormat
Set fftFill = ActiveWindow.RangeFromPoint.Chart.Format.Fill

Glow returns the glow formatting properties for the chart element.

Dim gftGlow As Office.GlowFormat
Set gftGlow = ActiveWindow.RangeFromPoint.Chart.Format.Glow

Line returns the line formatting properties for the specified chart element.

Dim lftLine As LineFormat
Set lftLine = ActiveWindow.RangeFromPoint.Chart.Format.Line

Parent returns the parent for the specified object. Read-only object.

Dim objParent As Object
Set objParent = ActiveWindow.RangeFromPoint.Chart.Format.Parent

PictureFormat returns a PictureFormat object for a specified chart that contains pictures.

Dim pftPictureFormat As PictureFormat
Set pftPictureFormat = ActiveWindow.RangeFromPoint.Chart.Format.PictureFormat

Shadow returns shadow formatting properties for the chart element.

Dim sftShadow As ShadowFormat
Set sftShadow = ActiveWindow.RangeFromPoint.Chart.Format.Shadow

SoftEdge returns the soft edge formatting for a shape.

Dim sefSoftEdge As Office.SoftEdgeFormat
Set sefSoftEdge = ActiveWindow.RangeFromPoint.Chart.Format.SoftEdge

TextFrame2 returns the text formatting for the specified chart element.

Dim tf2TextFrame2 As TextFrame2
Set tf2TextFrame2 = ActiveWindow.RangeFromPoint.Chart.Format.TextFrame2

ThreeD returns the 3D-effect formatting properties for the specified chart.

Dim tdfThreeD As ThreeDFormat
Set tdfThreeD = ActiveWindow.RangeFromPoint.Chart.Format.ThreeD