LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Passing a named range to a chart/series object

I am trying to create a scrolling chart to act as a window on tim
series data. I can do this by defining a named range with an offse
linked to a scroll bar.
eg Channel1 =OFFSET(Inverse!$D$1,Graph!$C$2,1,Graph!$C$3,1)

the full data set starts at D1 and a subset is defined calle
'channel1'
where C2 holds the start of the subset of data I want to chart and C
the number of lines of data (eg a window on the time series). Both C
and C3 are linked to scroll bars allowing me to scroll through the dat
with a variable sized window.

A chart is then constructed that uses the named range channel1.

I actually have 16 channels of data and want to be able to turn on an
off which ones are displayed in the graph at will. One way to do thi
is write some code to alter which named range the chart/series objec
is using. My problem is that when I refer to the named range

Worksheets("Graph").ChartObjects(1).Activate
ActiveChart.SeriesCollection.Add _
Source:=Worksheets("Inverse").range("graphit.xls!c han4")

Excel transfers the current range associated with the named rang
rather than the indirect reference to the named range and so when
change the contents of the named range it is not reflected in th
chart.

How do I stop excel from interpreting "graphit.xls!chan1" as D1:D20
and take me literally?

Or do you know of a pre-existing solution to my scroll graph wit
selectable channels probelm?

Yours hopefully
Crai

--
Message posted from http://www.ExcelForum.com

 
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
Charts - named range ref in SERIES() - Can't find it Gdareos[_2_] New Users to Excel 2 March 23rd 08 03:18 PM
Series Named Range Problem Arturo Charts and Charting in Excel 1 July 3rd 07 09:31 PM
series w/ named range not shown when reopen chart [email protected] Charts and Charting in Excel 0 March 20th 07 11:45 PM
Passing Excel NAMED Range to VBA BG Excel Worksheet Functions 4 July 28th 05 05:23 PM


All times are GMT +1. The time now is 09:24 AM.

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

About Us

"It's about Microsoft Excel"