Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.96 KB

Excel.SeriesCollection.md

File metadata and controls

68 lines (45 loc) · 1.96 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
SeriesCollection object (Excel)
vbaxl10.chm579072
vbaxl10.chm579072
Excel.SeriesCollection
93aa1f0b-4939-8c60-a444-2f791e8ce144
04/02/2019
medium

SeriesCollection object (Excel)

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

Remarks

Use the SeriesCollection method of the Chart property to return the SeriesCollection collection.

Example

The following example adds the data in cells C1:C10 on worksheet one to an existing series in the series collection in embedded chart one.

Worksheets(1).ChartObjects(1).Chart. _ 
 SeriesCollection.Extend Worksheets(1).Range("c1:c10")

Use the Add method to create a new series and add it to the chart. The following example adds the data from cells A1:A19 as a new series on the chart sheet named Chart1.

Charts("chart1").SeriesCollection.Add _ 
 source:=Worksheets("sheet1").Range("a1:a19")

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 the first series in embedded chart one on Sheet1.

Worksheets("sheet1").ChartObjects(1).Chart. _ 
 SeriesCollection(1).Interior.Color = RGB(255, 0, 0)

Methods

Properties

See also

[!includeSupport and feedback]