Chart.PlotBy property (PowerPoint)

Returns or sets the way columns or rows are used as data series on the chart. Read/write Long.



expression A variable that represents a Chart object.


The value of this property can be one of the following XlRowCol constants:

  • xlColumns

  • xlRows

For PivotChart reports, this property is read-only and always returns xlColumns.



Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

The following example causes the first chart in the active document to plot data by columns.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        .Chart.PlotBy = xlColumns

    End If

End With

See also

Chart Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.