Hey guys. I am trying to get familiar with VBA and I got stuck on this problem. I have a macro that will insert a line of data on sheet1, and then make a graph of that data on sheet2. However, when I run this macro a second time I get an error regarding the name of the second chart it created. Long story short: I need a way to use a value from the row a created as a name for the new chart. Despite much searching, I have only been able to find a way link a cell value to a chart title, not the name.
I am currently using:
ActiveChart.Parent.Name = "Chart Title"
But I need for every chart to have a unique name and I cannot find a way to:
ActiveChart.Parent.Name = "cell value". I have tried ActiveChart.Parent.Name = "=Bills!$A$3" as a test, but (as I am sure you know) it named the chart '=Bills!$A$3'.
Thanks for all the advice!
Bookmarks