Trendline.Type Property (Word)
Returns or sets the trendline type. Read/write XlTrendlineType.
Version Information
Version Added: Word 2007
Syntax
expression .Type
expression A variable that represents a Trendline object.
Example
The following example changes the trendline type for the first series of the first chart in the active document. If the series has no trendline, this example fails.
With ActiveDocument.InlineShapes(1)
If .HasChart Then
.Chart.SeriesCollection(1).Trendlines(1).Type = xlMovingAvg
End If
End With