You've run into the limit on the number of characters which can be used to
describe the .values and .xvalues, which is around 253 (no, not 255 or 256).
200 values plus 199 commas is 399 characters, and that's if the values are
all single digit.
Dump the values into a worksheet range and use this range as the chart's
source data range.
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______
"Ben" wrote in message
...
Hi,
I'm using a xlXYScatter chart with 3 series. When I try to assign
the Xarray with 200 values to the XValues like this:
objChart.SeriesCollection(1).XValues = Xarray
I got the following error:
Unable to set the XValues property of the Series class
I have the chart embeded in an OLE control on a VB form.
Please Help.
Thanks