Thread: File reference
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default File reference

Hi

You can use INDIRECT function to create a link, of-course, but there is a
drawback - INDIRECT needs source file to be opened - otherwise it returns an
error.

When addressing by cell value is needed only for designing purpouses, then
my advice is to use this alternative technique:

Into some column, p.e. A, enter workbook names.
In another column, enter the formula like this:
="='[" & A1 & "]Sheet1'!A1"
and copy it down
Select the range with formulas. Copy, and then PasteSpecialValues. Leaving
the range selected, replace all "=" with "=".
It's done!


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"TJW JR" <TJW wrote in message
...
I am trying to reference data in an external workbook and would like to
save
some typing. Each row has the same references, but to a different file.
I
would like to just type the file name in the first cell and have each of
the
following cells use that cell to get the file name and perform the
function.
For instance:

='[external_file.xls]Enterprise Architecture'!$B$3

But the formula would contain some function that would get
external_file.xls
from the first cell.