Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Aja Aja is offline
external usenet poster
 
Posts: 4
Default dynamic reference for chart

Hello,

I want to export data from Excel, perform some calculations on it, and then link the data to an Excel chart. Although the exported data has a named range with it, the area where I've done calculations doesn't have a dynamic named range. It's the calculated area that I want my chart to reference. Does one have an example of code to share that makes my chart reference only the dimensions of the calculated area that correspond to the variable dimensions of the exported data? I'm sure it's some combination of the offset function. I just don't know exactly how to make it work.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default dynamic reference for chart

On Possibility is
you can refer to a dynamic contiguous area by using the upper left corner
and CurrentRegion

set rng = Worksheets("NewSheet").Range("B9").CurrentRegion
If your chart is pre built, you can then create a named range for this
region and use the named range in your chart

rng.Name = "Data1"



--
Regards,
Tom Ogilvy

"Aja" wrote in message
...
Hello,

I want to export data from Excel, perform some calculations on it, and

then link the data to an Excel chart. Although the exported data has a
named range with it, the area where I've done calculations doesn't have a
dynamic named range. It's the calculated area that I want my chart to
reference. Does one have an example of code to share that makes my chart
reference only the dimensions of the calculated area that correspond to the
variable dimensions of the exported data? I'm sure it's some combination of
the offset function. I just don't know exactly how to make it work.


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
Dynamic Reference Tyler.C.Brown New Users to Excel 7 July 24th 09 11:58 PM
Dynamic chart pasted to a new workbook in report can't be dynamic Piotr (Peter)[_2_] Charts and Charting in Excel 2 August 6th 08 05:15 AM
How do i set up a 3d reference where one cell reference is dynamic SmilingSteve Excel Discussion (Misc queries) 15 March 14th 08 05:05 AM
Dynamic reference to another tab name Angus Excel Worksheet Functions 5 February 9th 07 05:41 PM
Reference to a dynamic range Yossi Excel Discussion (Misc queries) 2 April 12th 05 12:57 PM


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