indirect addressing

G

GC

I need to adjust the series range as follows;

I have a cell with a range name "EndData". This will be used to set the end
of the series for my line chart. The example below will select data from F5
to F22. I need to replace the 22 in F22 with my cell called EndData which
could have a value of 50 for example. What would be the correct syntax?

ActiveChart.SetSourceData Source:=Sheets("Data").Range("F5:F22"), PlotBy:=
xlColumns

Thanks a bunch,
Gerry
 

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