Peter T
12/15/2006 9:20:00 AM
If (?) the objective is to hide your series why not simply exclude it when
making the chart or delete it later. Or if it's a 'fill' type and you want
to leave it's location intact but in effect make it invisible, record a
macro while formatting its fill and line (border) to none.
If for some reason you particularly need to make all values zero and not
linked to cells, with 'sr' a reference to your series -
ReDim naVals(1 To sr.Points.Count) As Long
sr.Values = naVals
Obviously you'd need to populate the array for any other value(s) other than
zero. There could be problems if user amends the chart, also this method
would be limited to about 115 points assuming applying single digit values
like 0.
Regards,
Peter T
"keri" <keri.dowson@diageo.com> wrote in message
news:1166171692.139018.237690@f1g2000cwa.googlegroups.com...
>
> Thanks but unfortunately I am wanting 26 different data series that are
> visible / not visible depending on their checkboxes. I can't use the
> visible cells only option for other reasons. I figured the best way to
> do it was to set if the click box was not checked (false) that the
> series data was set to 0. Please correct me if there is another way.
>