Share via


SeriesCollection Collection Object

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

SeriesCollection
Aa189484.space(en-us,office.10).gifAa189484.parchild(en-us,office.10).gifSeries
Aa189484.space(en-us,office.10).gifAa189484.space(en-us,office.10).gifAa189484.parchild(en-us,office.10).gif

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

Using the SeriesCollection Collection

Use the SeriesCollection method to return the SeriesCollection collection. 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

Use SeriesCollection(index), where index is the series' index number or name, to return a single Series object. 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)