Naming the Series

J

Joe

Hi,

Thank you all for the continuous support/clarifications.

I have an excel chart/graph which gets dynamically gets updated using the VB
macro. I have 5 series in the in the chart and they are named with the
meaningfully in the chart template.

But when I run the macro to update the chart with the new set of values the
names of the series are set to Series1, Series2 etc.

How do I prevent resetting of the series names?

Thanks
 
A

Andy Pope

Hi,

To set the name of the chart series use something like this,

ActiveChart.SeriesCollection(1).Name="My name"

' or cell reference

ActiveChart.SeriesCollection(1).Name=Range("Sheet1!A1")

Cheers
Andy
 

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