I'm setting up a chart that automatically adjusts the series based on the number of rows of data. I already have my script set up to determine the last row in the worksheet that contains data--I just can't figure out how to edit the chart.
This is the code that I've got:
Where x is the last row containing data.Code:ActiveChart.SeriesCollection(1).Values = "='Chart'!$C$2:$C$" & x
Thanks.
Last edited by adamsad1; 08-19-2009 at 01:03 PM.
so does your code not work? if it errors what does the error say?
Last edited by Andy Pope; 08-19-2009 at 12:42 PM.
Hmm... Well, that's odd... It was kicking back an application/object-defined error on that line. I just ran it again and it the script worked perfectly.
I guess maybe I just needed to close out and re-open Excel.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks