How to append existing series?

  • Thread starter Michael C via OfficeKB.com
  • Start date
M

Michael C via OfficeKB.com

I want to append specific series on a chart.
I realize using the extend method would do the trick, but that will append
all the series in the chart.Hence the format SeriesCollection.Extend

I want to be able to extend specific series so SeriesCollection(index).Extend,
but it gives me a runtime error when using that code.

Anyone know how would I extend an existing specific series?
 
T

Tushar Mehta

If you know the range that constitutes the source for a particular
series set the Values (and XValues) properties. Something like:

ActiveChart.SeriesCollection(1).Values = _
"='" & ActiveSheet.Name & "'!" _
& Range("F1").Resize(4, 1).Address( _
RowAbsolute:=True, ColumnAbsolute:=True, _
ReferenceStyle:=xlR1C1)

Or you can use named formulas for series a la
Dynamic Charts
http://www.tushar-mehta.com/excel/newsgroups/dynamic_charts/index.html

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top