Help using indirect addressing in chart series

G

GC

Hi,
I have named a single cell "DataCount" and a complete column "DataRange". In
DataCount i have the
count(DataRange) function. I would like to use DataCount when specifying the
series range in a chart.

ActiveChart.SeriesCollection(1).Values = "='System 4'!R2C13:R35C13"

In this example I need to substitute R35 with DataCount.
What is the correct syntax?

Thanks in advance,
 
P

Patrick Molloy

val = range("DataCount").Value
ActiveChart.SeriesCollection(1).Values = "='System 4'!R2C13:R" & val & "C13"
 

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