ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Changing Chart Series Names (https://www.excelbanter.com/excel-programming/326820-changing-chart-series-names.html)

Juggernath[_4_]

Changing Chart Series Names
 
I have an selected chart and data column (G) in Worksheet. The number of
data and series is the same and supposed names of series are in column (F).
How to access data range of selected chart (in column G) so i could change
default Series names to supposed names of series?



Robert Bruce[_2_]

Changing Chart Series Names
 
Juggernath wrote:
I have an selected chart and data column (G) in Worksheet. The number
of data and series is the same and supposed names of series are in
column (F). How to access data range of selected chart (in column G)
so i could change default Series names to supposed names of series?


John Walkenbach has created a class to help fill this hole in the Excel
object model:

http://j-walk.com/ss/excel/tips/tip83.htm

Rob



Tushar Mehta

Changing Chart Series Names
 
Assuming you know how to do the rest...

'...
aChart.Series(i).Name=aChart.parent.parent.columns ("F").cells(i).value

where aChart is a variable referring to the chart in question.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article , says...
I have an selected chart and data column (G) in Worksheet. The number of
data and series is the same and supposed names of series are in column (F).
How to access data range of selected chart (in column G) so i could change
default Series names to supposed names of series?





All times are GMT +1. The time now is 04:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com