Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Returns an object that represents a single trendline or a collection of all the trendlines for the series.
Syntax
expression.Trendlines (Index)
expression Required. An expression that returns a Trendlines collection.
Parameters
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| Index | Optional | Variant | The name or number of the trendline. |
Example
This example adds a linear trendline to series one.
myChart.SeriesCollection(1).Trendlines.Add Type:=xlLinear
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.