excel - Creating a chart and adding new series to it -


i trying add new chart workbook using code below. however, every time try run it, error object doesn't support property or method on name property. tried use qualified workbook name still no luck. code:

charts.add activechart.seriescollection.newseries         .name = activesheet.range("a2")         .values = activesheet.range("b2:ak2")         .xvalues = activehsheet.range("a2:a7") end 

i tried using code in following way:

charts.add activechart.seriescollection.newseries         .name = finalviewswbk.sheets(1).range(finalviewswbk.sheets(1).cells(2, 1))         .values = finalviewswbk.sheets(1).range("b2:ak2")         .xvalues = finalviewswbk.sheets(1).range("a2:a7") end 


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -