I am using the "Camera" feature in excel 2010.
My goal is to have a cell which would have a date that I can manually enter and just below it the formula would get the updated value which represents the name of the sheet inside another excel file and shows me the updated screenshot.
For example:
Cell A1
has: 12.25
Just below it, I have:
='C:\My_Excel_Files\[excelDataFile.xlsx]12.25'!$A$1:$D$20
So if I were to change the value of Cell A1
to 12.26
the formula would pick that up automatically.
I tried using the indirect function like this:
='C:\My_Excel_Files\[excelDataFile.xlsx]INDIRECT(A1)'!$A$1:$D$20
but it didn't work.
yeah, this is pretty straightforward. create two xlsx documents, let's call them s1.xlsx and s2.xlsx. it's from s1 that we want to create the Camera, but the data is in s2.
in s2
in s1
=Excel.Sheet.12|'C:\Users\Me\Desktop\s2.xlsx'!'!Sheet1!R3C1:R4C2'
)in s2
in s1
As mentioned on this forum and this website, you can use the free MOREFUNC.XLL add-in. It provides the INDIRECT.EXT function that will do exactly what you're requesting. The formula you need in your case would be along the lines of:
=INDIRECT.EXT("'C:\My_Excel_Files\[excelDataFile.xlsx]" & A1 & "'!$A$1:$D$20")
Where you concatinate the value of A1 in the middle of the string.
Note: the links in those sites seem to not always work, you can either google for "MOREFUNC download" or try one of these links:
http://download.cnet.com/Morefunc/3000-2077_4-10423159.html
http://www.freewarefiles.com/Morefunc_program_14922.html
A slightly different approach might work for you. Let's assume that:
MyCameraImage
SO09.xlsm
$F$1:$I$5
and is the same on all relevant sheetsA1
Add a
Worksheet_Change
event to the worksheet with the camera imageThis will update the Camera Image reference to the sheet named in cell
A1
(if it exists)Note that the "other" workbook must be open for this to work and for the image to update