Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GC GC is offline
external usenet poster
 
Posts: 18
Default Help using indirect addressing in chart series

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,


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Help using indirect addressing in chart series

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

"GC" wrote in message
...
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,


  #3   Report Post  
Posted to microsoft.public.excel.programming
GC GC is offline
external usenet poster
 
Posts: 18
Default Help using indirect addressing in chart series

Thank you so much Patrick.
GC


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

"GC" wrote in message
...
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,




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using INDIRECT in named range for chart data series ionajewel Charts and Charting in Excel 1 January 25th 10 09:40 PM
indirect addressing GC Excel Programming 2 June 16th 09 12:11 PM
Indirect Addressing in VBA C Brandt Excel Discussion (Misc queries) 7 July 3rd 07 10:13 PM
how do I define a chart series with an indirect reference tvanellen Charts and Charting in Excel 4 May 31st 06 10:52 AM
Indirect Addressing Kanga 85 Excel Discussion (Misc queries) 3 December 5th 05 04:03 AM


All times are GMT +1. The time now is 04:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"