D
Don Guillett
Since indirect won't work with closed files, couldn't u use indirect to make
the reference and then just copy/paste special values?
--
Don Guillett
SalesAid Software
(e-mail address removed)
the reference and then just copy/paste special values?
--
Don Guillett
SalesAid Software
(e-mail address removed)
Howie said:Some additional clarification may be necessary
If I actually enter
='\\path\to\[7.01AD.xls]BS'!$Q$81 in B1
it works fine, the worksheet updates when I open it.
What I'm trying to do is copy the formula down the rows changing the name of
the workbook in each row to match the contents of column A.
Thanks
Howie Goldman
theDave Peterson said:I think the worksheet function you'd want to use is =indirect(). Buthttp://google.com/[email protected]bad
news is =indirect() won't work with closed files. And I'm guessing you won't
open all the possible workbooks so that the one you want will be open.
But John Walkenbach has some code that will allow a macro (not a worksheet
function) retrieve values from a closed workbook.
http://j-walk.com/ss/excel/eee/eee009.txt
Look for either: GetDataFromClosedFile or GetValue.
But Harlan Grove posted a function that opens the other workbook and retrieves
the value from a separate instance of excel:inIf you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htmitin cell B1 I want the value of cell Q81 from sheet BS in workbook 7.01AD.xls
in cell B2 I want the value of cell Q81 from sheet BS in workbook 7.01AB.xls
in cell B3 I want the value of cell Q81 from sheet BS in workbook
random.name.xls
I can of course open the workbook and point to the cell. That gives me
='\\path\to\[7.01AD.xls]BS'!$Q$81
I'm trying to avoid having to open and point to the cell in each worksheet.
I tried
='C:\path\to\[&A1&]BS'!$Q$81
doesn't work, similarly
='C:\path\to\[&text(A1)&]BS'!$Q$81
doesn't work.
I get an update value dialog box looking for the file I want to open.
Any help?
Thanks and Happy New Year
Howie Goldman