I have a line chart for which I cannot figure out how to retrieve the XValues of a series. I know how to set the XValues:
ActiveChart.SeriesCollection(1).XValues = ActiveSheet.Range("A10:20")
But I cannot retrieve this information.
Dim x As Range
Set x = ActiveChart.SeriesCollection(1).XValues
Error: "Object required"
Dim x As String
x = ActiveChart.SeriesCollection(1).XValues
Error: "Type mismatch"
Is there a way to do this?
Thanks very much.
Abiel
ActiveChart.SeriesCollection(1).XValues = ActiveSheet.Range("A10:20")
But I cannot retrieve this information.
Dim x As Range
Set x = ActiveChart.SeriesCollection(1).XValues
Error: "Object required"
Dim x As String
x = ActiveChart.SeriesCollection(1).XValues
Error: "Type mismatch"
Is there a way to do this?
Thanks very much.
Abiel