SparklineGroup.ModifyDateRange method (Excel)
Sets the date range for the sparkline group.
Syntax
expression.ModifyDateRange (DateRange)
expression A variable that represents a SparklineGroup object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
DateRange | Required | String | The date range for the sparkline group. |
Return value
Nothing
Example
This example selects a sparkline group in the location A2:A5 and sets the date range equal to B1:E1. If the cells in range B1:E1 don't contain date values, the data is not displayed.
Range("A2:A5").Select
ActiveCell.SparklineGroups.Item(1).ModifyDateRange "Sheet1!B1:E1"
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.