No, that is the INDIRECT part I mentioned before, but it doesn't work with
closed workbooks.
There is a function available if you search Google called Pull, which reads
from closed workbooks in that manner, but that would probably take as much
effort as doing them all.
Just thought. Another way.
Put the list of file names in column A, File.xls, File 2.xls, etc.
Then put your formula in B1, but use XXXX for the filename, like so
=SUM('C:\[XXXX]Sheet1'!$A$1:$A$5)
Then run this bit of code
Sub Test()
Dim iLastRow As Long
Dim i As Long
iLastRow = Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 To iLastRow
Cells(i, "B").Formula = Replace(Cells(i, "B").Formula, "XXXX",
Cells(i, "A").Formula)
Next i
End Sub
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Tomos" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
>
> That's what I've been doing. It's just so time consuming typing the
> individual file names in.
>
> Is there any way to list all the file names in a folder then use the
> sum formula to refer to the cell with the file name in for the
> =SUM(XXXSheet2'!$A$1:$A$5) XXX bit?
>
>
> --
> Tomos
> ------------------------------------------------------------------------
> Tomos's Profile:
http://www.excelforum.com/member.php...o&userid=26581
> View this thread: http://www.excelforum.com/showthread...hreadid=398527
>