LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Data Range for Graphs

Hi James,

You can use Named ranges to dynamically update charts.

Check out Jon Peltier's examples.
http://peltiertech.com/Excel/Charts/...html#DynColCht

Or Tushar Mehta's Dynamic Charts example
http://www.tushar-mehta.com/

Cheers
Andy

James wrote:

I would like to "formularize" the data range for a graph
using VBA code so that when my data updates, I can update
my graph accordingly (i.e. when data updates, range for
graph changes).

Cannot figure out how to do this as Excel doesn't accept
the conventional VBA code for ranges when dealing with
graphs, at least it seems. When using Macro recorder, the
following is generated.

ActiveChart.SeriesCollection(1).XValues = "Summary!
R4C1:R39C1"

This doesn't work. I don't want to set the graph for a
very large range that I know will cover everything because
Excel will graph the null or zero values, greatly
distorting the graph.

Can anyone help.

Thanks!


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
 
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
Data for Graphs Steve[_11_] Excel Discussion (Misc queries) 1 January 8th 08 02:30 AM
How can I make graphs if without any data available? Ledi New Users to Excel 1 September 14th 07 02:56 PM
Data Analysis and Graphs Rajeev Excel Discussion (Misc queries) 2 May 9th 06 01:08 AM
Define range for graphs/charts with validation list janfolmer Excel Discussion (Misc queries) 2 August 29th 05 02:02 PM
How do I make range bar graphs in Excel 2002? jeffkoko Charts and Charting in Excel 1 February 23rd 05 08:13 PM


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