Edit

Share via


Order property (Excel Graph)

Returns or sets the trendline order (an integer greater than 1) when the trendline type is xlPolynomial (XlTrendlineType enumeration). Read/write Long.

Syntax

expression.Order

expression Required. An expression that returns one of the objects in the Applies To list.

Example

This example sets the order of the first trendline for series one if it's polynomial.

With myChart.SeriesCollection(1).Trendlines(1) 
 If .Type = xlPolynomial Then .Order = 3 
End With

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.