Series.Values Property (Excel)

Returns or sets a Variant value that represents a collection of all the values in the series.


expression. Values

expression A variable that represents a [Series](./Excel.Series(Graph object).md) object.


The value of this property can be a range on a worksheet or an array of constant values, but not a combination of both. See the examples for details.


This example sets the series values from a range.

Charts("Chart1").SeriesCollection(1).Values = _ 

To assign a constant value to each individual data point, you must use an array.

Charts("Chart1").SeriesCollection(1).Values = _ 
 Array(1, 3, 5, 7, 11, 13, 17, 19)

See also

Series Object