XL2003 Embedded Charts

A

Alistair F

I'm having trouble trying to modify the Values property of a SERIES object
for an embedded chart. I've tried vaious permutations around statements such
as

ActiveChart.SeriesCollection(3).Values = ranSchValuesRange

ranSchValuesRange is a Range object set to the values to be used by the
SERIES object. I've tried using the ARRAY definition as well and this makes
no difference. I keep getting the error message

Unable to set the Values property of the Series class

I'm sure I've used this type of statement before but for a Chart sheet but I
keep running into difficulties trying to replicate some procedures for
embedded charts.

Any suggestions?


Thanks in anticipation.
 
A

Alistair F

The error message is:

Run time error 1004

Unable to set the Values property of the Series class

Cheers

Alistair
 
J

Jon Peltier

Is it an XY or Line chart? Does the series have no valid plottable data
(i.e., only blanks or errors)?

Temporarily convert the series to another type (area or column), assign the
data, than change the type back.

- Jon
 
A

Alistair F

It's a line chart and there are no data which is why I want to swap the
Values range to another that does have values. Does the fact that the cells
in the Values range are all Blanks cause a problem?

Cheers


Alistair
 
J

Jon Peltier

That's exactly right, and it's why I suggested temporarily changing the
chart type to a type (area or column) that doesn't suffer from this problem.

- Jon
 
A

Alistair F

OK, I've tried a different chart type and am able to change the Values
property. I'll devise a work around now that I understand the problem (I
think!).

Cheers, and thanks for your help

Alistair Fyfe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top