I have a couple of applications where the sheet data are identical in location. What I want to do is "clone" the chart on one of the sheets to the other sheets. If I copy the chart to a new sheet, it still references back to the old location. The "fix" is to activate the chart on the new sheet, go to Select Data and edit each series by changing the name of the sheet from the old sheet to the new sheet.
I would like to automate this process. So I recorded a macro and here's a part of it.
When I try to reference ActiveChart.FullSeriesCollection(1).Name , I get the contents of cell A2 on page 2. I don't get "='Page 2'!$A$2". I will need to do that so I can write my program.![]()
ActiveChart.FullSeriesCollection(1).Name = "='Page 2'!$A$2" ActiveChart.FullSeriesCollection(1).Values = "='Page 2'!$B$2:$D$2"
I can't even reference ActiveChart.FullSeriesCollection(1).Values, but I need to find how to get the "='Page 2'!$B$2:$D$2" part.
So far, everything I've researched tells me how to set these values. In other words, I can tell the chart where to read the data from. I can't tell where it is currently reading the data from.
Bookmarks