Camera Tool & Indirect Function

Pondcroft13

New Member
Joined
May 27, 2010
Messages
32
Dear All,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p> </o:p>
I am currently trying to use the camera tool in excel to display different graphs depending on what a user has selected in a drop down window – drop down window created using forms tool.
<o:p> </o:p>
I have named ranges behind all the graphs I wish to use and when I type the named range into the formula bar when I have the ‘camera window’ selected, eg =cht1 it works perfectly, and displays cht1 in the window. Due to the fact I am using a drop down menu however I want the ‘camera window’ to refer to a specific cell where the contents of the cell will change dependent on the selection in the drop down menu. Unfortunately when I try and do this the ‘camera window’ displays the contents of the given cell, eg the text ‘cht2’ rather than the range of cells and therefore the graph that this ‘name’ actually refers to.
<o:p> </o:p>
I am presuming I need to use some kind of INDIRECT function but I have tried various different combinations of this function and have not been having much joy. Any ideas?
<o:p> </o:p>
In summary:
<o:p> </o:p>
I have created 7 charts, the cells behind all these charts have been given range names as follows cht1, cht2, cht3 etc etc.
<o:p> </o:p>
I have created a ‘window’ using the camera tool that will show and resize anything it is pointing to.
<o:p> </o:p>
I have 2 cells (B34 & B35) containing the data required to choose the correct range name when a selection is made by the user. The first cell (B34) contains a numerical value (1-7) depending on what the user selects in the form drop down window. The second cell contains the following formula:
<o:p> </o:p>
=IF(B34<7,"cht"&B34,"cover") – FYI – ‘Cover’ is a named range that shows a picture if a value selected is false.
<o:p> </o:p>
The above formula/cell will then return a value cht1, cht2, cht3 etc etc – it is this cell that I would like to link the ‘camera window’ to, as the above returned value/s are the named ranges that will display my charts. Unfortunately the ‘window’ is currently displaying the text values rather than the ‘named range’ and therefore the graphs that these values align to.
<o:p> </o:p>
Hope that makes sense! Please help!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,

You've probably figured it out by now,but just in case you haven't:
I think it has to do with your name choices. Excel 2007 has more columns and rows than Excel 2003 did, so cht2 actually refers to an actual cell. If you add another vowel or consonant to your range names, you should be fine.

Regards,

C
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,535
Members
449,037
Latest member
tmmotairi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top