SparklineGroup.ModifyLocation method (Excel)
Sets the associated Range object to modify the location of the sparkline group.
Syntax
expression.ModifyLocation (Location)
expression A variable that represents a SparklineGroup object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Location | Required | Range | The range that represents the location of the sparkline group. |
Return value
Nothing
Example
This example selects a sparkline group in the location A1:A4 and changes the location to equal A10:A14.
Range("A1:A4").Select
ActiveCell.SparklineGroups.Item(1).ModifyLocation Range("$A$10:$A$14")
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.