Hello,
I am trying to update a chart range programmatically. The code I am using is given below. The error I receive states that I am unable to set the Xvalues this way.
Set dateRangeStart = Worksheets("HISTORY"
.Range("A4"
ActiveChart.SeriesCollection(1).XValues = dateRange
I have also tried
ActiveChart.SeriesCollection(1).XValues = dateRange.currentRegion
but this updates the Xvalues with an incorrect range.
Thanks,
Mep
I am trying to update a chart range programmatically. The code I am using is given below. The error I receive states that I am unable to set the Xvalues this way.
Set dateRangeStart = Worksheets("HISTORY"
ActiveChart.SeriesCollection(1).XValues = dateRange
I have also tried
ActiveChart.SeriesCollection(1).XValues = dateRange.currentRegion
but this updates the Xvalues with an incorrect range.
Thanks,
Mep