Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Named Range as Chart Source

Hello!,

I am using a named range (dynamic: with offset and counta, to include
additional rows automatically) as my chart source (Office 2007). But i
noticed that every time I run the chart it changes the source to the
range itself (absolute) and not using the source as named range.

This is not done through vba.

Is there a way that I can use a dynamic named range in a chart (Office
2007)?

Thanks,

Abdul
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Named Range as Chart Source

You cannot use a named range for the whole data source, you have to have
separate named ranges for each series.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Abdul" wrote in message
...
Hello!,

I am using a named range (dynamic: with offset and counta, to include
additional rows automatically) as my chart source (Office 2007). But i
noticed that every time I run the chart it changes the source to the
range itself (absolute) and not using the source as named range.

This is not done through vba.

Is there a way that I can use a dynamic named range in a chart (Office
2007)?

Thanks,

Abdul



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Named Range as Chart Source

Of course, with VBA you could do this. In the Sheet1 code module (assuming
thee chart and the data are on Sheet1):

Private Sub Worksheet_Change(ByVal Target As Range)
ChartObjects(1).Chart.SetSourceData Source:=Range("MyChartRange")
End Sub

If this fires too frequently (every time a cell is changed), you might try
this:

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("MyChartRange")) Is Nothing Then
ChartObjects(1).Chart.SetSourceData Source:=Range("MyChartRange")
End If
End Sub


- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______



"Bob Phillips" wrote in message
...
You cannot use a named range for the whole data source, you have to have
separate named ranges for each series.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Abdul" wrote in message
...
Hello!,

I am using a named range (dynamic: with offset and counta, to include
additional rows automatically) as my chart source (Office 2007). But i
noticed that every time I run the chart it changes the source to the
range itself (absolute) and not using the source as named range.

This is not done through vba.

Is there a way that I can use a dynamic named range in a chart (Office
2007)?

Thanks,

Abdul





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 a named range as a data source for a chart MichaelR Charts and Charting in Excel 4 June 16th 08 04:15 AM
Using a named range as a data source for a chart MichaelR Excel Worksheet Functions 0 June 15th 08 01:34 AM
Using a named range as a source for a combobox on a userform Keith R[_2_] Excel Programming 4 November 9th 07 05:29 PM
Using a Named Range for Data Source In A Chart JoeP Charts and Charting in Excel 2 April 25th 07 02:33 AM
Combobox and named range as source Matt Jensen Excel Programming 3 December 30th 04 02:47 PM


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