Sparkline.ModifySourceData method (Excel)

Modifies the source data for a single sparkline.

Syntax

expression.ModifySourceData (Formula)

expression A variable that represents a Sparkline object.

Parameters

Name Required/Optional Data type Description
Formula Required String The range that contains the source data.

Return value

Nothing

Remarks

The data source range for a single sparkline must be continuous.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.