SetSourceData Method

         Example         Applies To

Sets the source data range for the chart.

Syntax

expression.SetSourceData(Source, PlotBy)

expression   Required. An expression that returns a Chart object.

Source   Required Range. The range that contains the source data.

PlotBy   Optional Variant. Specifies the way the data is to be plotted. Can be either of the following XlRowCol constants: xlColumns or xlRows.