SeriesCollection Collection Object

Microsoft Graph Visual Basic

SeriesCollection Collection Object

         
Chart ChartGroups (ChartGroup)
SeriesCollection (Series)
Border
Points (Point)
Interior

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)