Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating Chart Range

Status
Not open for further replies.

mep1

IS-IT--Management
Jun 18, 2003
67
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top