SeriesCollection collection (Excel Graph)

A collection of all the Series objects in the specified chart or chart group.

Remarks

Use the SeriesCollection method to return the SeriesCollection collection.

Use SeriesCollection (index), where index is the series' index number or name, to return a single Series object.

Example

The following example adjusts the interior color for each series in the collection.

For X = 1 To myChart.SeriesCollection.Count 
 With myChart.SeriesCollection(X) 
 .Interior.Color = RGB(X * 75, 50, X * 50) 
 End With 
Next X

The following example sets the color of the interior for series one in the chart to red.

myChart.SeriesCollection(1).Interior.Color = RGB(255, 0, 0)

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.