Probably easier to just use a defined name to make it completely automatic. 
Goto worksheet_1
insert>name>define
mr
refers to 
=$e$1
=====
graphD
refers to
offset(worsheet_1!
=INDIRECT("$d$2:$d$"&mr)
or you could probably use an offset formula to make the e1 notation unnecessary.


Don Guillett
Microsoft Excel Developer
SalesAid Software
dguille...@gmail.com

From: Niv 
Sent: Saturday, July 28, 2012 2:26 AM
To: excel-macros@googlegroups.com 
Subject: $$Excel-Macros$$ Update graph range by referencing a cell?

I have a spreadsheet with data that gets updated weekly.
The first worsheet has the raw data.
On 4 more separate worksheets, I just have separate graphs of the data from 
thefirst worksheet.

At the moment I have to update the range of the graphs by going into each 
separate worksheet and changing the end of the range.

e.g. the graph on worksheet 2 uses this for its range:    
='worksheet_1'!$D$8659:$D$9390
I'd like to change the $D$930 part of the  range so it references a number 
froma cell on workshee_1?
(I'd like to just have a number on the first worksheet that the4 graphs can 
reference for theupper range,but can't see how)

Any help most welcome. 
Niv
-- 
-- 
FORUM RULES (986+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
 
------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com
 
To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com
 
 

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com


Reply via email to