Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Avi
 
Posts: n/a
Default Chart attached to dynamic range

Hello,

I try to create a multiple a chart based on three columns and a variable nb of columns where the columns are the X axis

a1 b1 c1
bbb 4 5 7
ccc 5 6 4
ddd 3 5 3


To do that i create a dynamic ranged name and put it in the Range field in the chart wizard. The problem is after doing that, the ranged name becomes an usual static range address. Is there a way to keep the cahrt linked to the Named range instead?

Thanks a lot for your help


Avi Benita 054-4660641 wwwAvi Benita 054-4660641 www.avibenita.com
  #2   Report Post  
Jon Peltier
 
Posts: n/a
Default

You can link the name, xvalues, and yvalues of a chart series to
individual named ranges, but you can't link the entire source data range
to a named range.

You can mimic the effect you want with a VBA procedure. Assuming your
range of interest is named SourceData, and the chart is the first chart
object on the sheet, right click the sheet tab, select View Source, and
paste this procedure into the code module that appears:

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

This is an event procedure, which is triggered by the event of the user
changing the SourceData range.

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


Avi wrote:

Hello,

I try to create a multiple a chart based on three columns and a variable
nb of columns where the columns are the X axis

a1 b1 c1
bbb 4 5 7
ccc 5 6 4
ddd 3 5 3


To do that i create a dynamic ranged name and put it in the Range field
in the chart wizard. The problem is after doing that, the ranged name
becomes an usual static range address. Is there a way to keep the cahrt
linked to the Named range instead?

Thanks a lot for your help


Avi Benita 054-4660641 wwwAvi Benita 054-4660641 www.avibenita.com
<http://www.avibenita.com

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
How to dynamically reference a dynamic named range paris3 Excel Worksheet Functions 4 June 24th 05 01:22 AM
Urgent Chart Assistance Brent E Charts and Charting in Excel 1 May 10th 05 09:09 AM
Urgent Chart Assistance Requested Brent E Excel Discussion (Misc queries) 0 May 9th 05 11:01 PM
Dynamic Range Chart ??? Yogalete Charts and Charting in Excel 3 April 27th 05 11:51 PM
Dynamic chart JC Excel Discussion (Misc queries) 1 March 29th 05 01:28 PM


All times are GMT +1. The time now is 01:53 PM.

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"