Display/Show related procedures in class Trendline (PowerPoint VBA)

This page presents procedures from class Trendline related to the theme Display/Show: DisplayEquation and DisplayRSquared

DisplayEquation

True if the equation for the trendline is displayed on the chart (in the same data label as the R-squared value).

Setting this property to True automatically enables data labels.

ActivePresentation.Slides(1).Shapes(1).Chart.FullSeriesCollection(1).Trendlines(1).DisplayEquation = True

DisplayRSquared

True if the R-squared value of the trendline is displayed on the chart (in the same data label as the equation).

Setting this property to True automatically turns on data labels.

ActivePresentation.Slides(1).Shapes(1).Chart.FullSeriesCollection(1).Trendlines(1).DisplayRSquared = True