Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 2.22 KB

Excel.Trendline(object).md

File metadata and controls

68 lines (49 loc) · 2.22 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Trendline object (Excel)
vbaxl10.chm593072
vbaxl10.chm593072
Excel.Trendline
5c04b065-57f4-a059-7c22-50612bd727ea
04/02/2019
medium

Trendline object (Excel)

Represents a trendline in a chart.

Remarks

A trendline shows the trend, or direction, of data in a series. The Trendline object is a member of the Trendlines collection. The Trendlines collection contains all the Trendline objects for a single series.

Example

Use Trendlines (index), where index is the trendline index number, to return a single Trendline object.

The index number denotes the order in which the trendlines were added to the series. Trendlines(1) is the first trendline added to the series, and Trendlines(Trendlines.Count) is the last one added.

The following example changes the trendline type for the first series 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

Methods

Properties

See also

[!includeSupport and feedback]