Description
Represents a trendline in a chart. A trendline shows the trend, or direction, of data in a series.
Accessors
The Trendline object is a member of the Trendlines collection. The Trendlines collection contains all the Trendline objects for a single series. Use the Add method to create a new trendline and add it to the series.
To access a single member of the collection, use the Trendlines method with the trendline index number as an argument.
The index number represents the order in which the trendlines were added to the series. Trendlines(1) is the first trendline added; Trendlines(Trendlines.Count) is the last. The following example changes the trendline type for series one in embedded chart one on worksheet one. If the series has no trendline, this example will fail.
Worksheets(1).ChartObjects(1).Chart. _ SeriesCollection(1).Trendlines(1).Type = xlMovingAvg
Properties
Application Property, Backward Property, Border Property, Creator Property, DataLabel Property, DisplayEquation Property, DisplayRSquared Property, Forward Property, Index Property, Intercept Property, InterceptIsAuto Property, Name Property, NameIsAuto Property, Order Property, Parent Property, Period Property, Type Property.
Methods
ClearFormats Method, Delete Method, Select Method.