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 Using Range names in selecting chart series.

Hi,

I have a range named DataCount. This will count the number of data points i
have in a column. I would like to use this information when specifying the
series range in 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,

Cherrs!




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 461
Default Using Range names in selecting chart series.

What kind of variable is DataCount? Is it a named range? A VBA
Excel.Range object? A string that contains an address? Does it reference
R35 or R35C13?

- Jon
-------
Jon Peltier
Peltier Technical Services, Inc.
http://peltiertech.com/



GC wrote:
Hi,

I have a range named DataCount. This will count the number of data points i
have in a column. I would like to use this information when specifying the
series range in 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,

Cherrs!




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
Selecting series in a chart based on a range and manual inputs Tigerxxx Excel Discussion (Misc queries) 0 July 19th 09 12:36 AM
Need event for selecting a series on a chart Giff Excel Programming 5 February 2nd 08 04:54 PM
Is there a way to give range names (especially with relative reference) for series names and series values in Excel 2007 graphs? [email protected] Excel Programming 0 August 16th 07 02:52 PM
Selecting part of a series for a chart? Al Charts and Charting in Excel 6 May 16th 06 12:45 PM
Selecting Multiple Chart Series Mark Worthington Excel Programming 0 February 13th 04 12:49 PM


All times are GMT +1. The time now is 07:11 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"