Hi jc,
Just to help you get the most out of this site, I'd like to explain a little bit how it works. I just got a feedback from you that says:
"Hey mvidas,
Thanks for the help.
WHen I run this macro i get a runtime error "9". Sub script out of range. On line 7
jc"
When you get a comment like this to one of your questions, don't use the "Feedback" button, as most users don't check their feedback regularly, and EE does not notify people when feedback has been left. The feedback is meant for you to give an opinion of the expert, rather than ask for more data like this.
On the page you're seeing now, scroll down a bit and you'll see a box at the bottom. It's right below a line that says "Post a comment:" and right above a button labelled "Submit". When you type in that box, and submit the comment, it gets added to the page. This is the best way to communicate with the experts, as everyone can read this and can try to help you.
Now, about the error you're getting. You'd be getting that error if "Chart1" isn't actually the chart name, or if the chart is an embedded object.
Does your chart have it's own 'Tab' at the bottom of your window, or is is part of another sheet?
Main Topics
Browse All Topics





by: mvidasPosted on 2005-01-20 at 12:54:11ID: 13097379
Hi jc,
ght)) 'This sets the range of the Data ht)) 'This sets the range of the Labels lection.XV alues = Label_Range lection.va lues = Data_Range
Try the following, it sets the label_range and data_range to correspond to the specific worksheet. It's got a little bit different setup, as I created a WS variable to refer to your long sheet name.
Dim Label_Range As Range 'Week1, Week2, .....
Dim Data_Range As Range '$1, $2, $3
Dim WS As Worksheet
Set WS = Worksheets("Inv. Turns-Weekly")
Set Data_Range = WS.Range("a12", WS.Range("a12").End(xlToRi
Set Label_Range = WS.Range("a5", WS.Range("a5").End(xlToRig
Charts("Chart1").SeriesCol
Charts("Chart1").SeriesCol
Matt