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: 8
Default Dynamic Chart Range

I'm trying to dynamically change the data range for a line chart
either in the chart setup or through VBA.

I first tried via the chart wizard - I defined a range name and by
using an OFFSET function in the "refers to" made it dynamic. I
couldn't figure out how to get the wizard to accept a range name
rather than a set data range.

I've done dynamic data for pivot tables in VBA so I tried that. For
pivot tables, I can make those dynamic by using "name.add" and then
referring to a string in a cell that I've built that defines the range
boundaries. Not that elegant and looking for something simplier if
possible.

In VBA, I also tried setting a range (ie, SET rng1 =
range(cells(1,1),cells(i,1)) then in the activechart syntax tried to
feed it range:= rng1, etc. but couldn't get that to work either.

I don't want to define the chart range as "$A$2:$A$65536" and use
"#N/A" in the blank fields to trick the graph into not showing the
data - not that elegant either.

Any ideas? Thanks.
 
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
dynamic range and chart - big help!! Xaraam Excel Worksheet Functions 3 August 4th 08 12:01 PM
Chart empty with new data in the dynamic range chart. Feejo Excel Discussion (Misc queries) 16 January 3rd 08 10:03 PM
Dynamic range in chart Hari Charts and Charting in Excel 6 June 26th 06 06:40 PM
Dynamic Range Chart ??? Yogalete Charts and Charting in Excel 3 April 27th 05 11:51 PM
Dynamic Chart Range and Chart Update ExcelMonkey[_154_] Excel Programming 1 July 6th 04 08:26 PM


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