SeriesCollection.Paste Method (Excel)

Pastes data from the Clipboard into the specified series collection.

Syntax

expression .Paste(Rowcol, SeriesLabels, CategoryLabels, Replace, NewSeries)

expression A variable that represents a SeriesCollection object.

Parameters

Name

Required/Optional

Data Type

Description

Rowcol

Optional

XlRowCol

. Specifies whether the values corresponding to a particular data series are in rows or columns.

SeriesLabels

Optional

Variant

True to use the contents of the cell in the first column of each row (or the first row of each column) as the name of the data series in that row (or column). False to use the contents of the cell in the first column of each row (or the first row of each column) as the first data point in the data series. The default value is False.

CategoryLabels

Optional

Variant

True to use the contents of the first row (or column) of the selection as the categories for the chart. False to use the contents of the first row (or column) as the first data series in the chart. The default value is False.

Replace

Optional

Variant

True to apply categories while replacing existing categories with information from the copied range. False to insert new categories without replacing any old ones. The default value is True.

NewSeries

Optional

Variant

True to paste the data as a new series. False to paste the data as new points in an existing series. The default value is True.

Return Value

Variant

Example

This example pastes data from the Clipboard into a new series in Chart1.

Worksheets("Sheet1").Range("C1:C5").Copy 
Charts("Chart1").SeriesCollection.Paste

See Also

Concepts

SeriesCollection Object

SeriesCollection Object Members