I'm trying to get some values from particular worksheets in other excel files
into my currently open file. I'm able to build up the filenames and put them
in a cell, say B2.
Now, I'd like to use the filename in cell B2 to get the values from that file.
Let's say B2 now contains filename_20060712.xls.
In another cell I have,
='U:\foo\[filename_20060712.xls]Sheet3'!$I$15
What I'd like to do is use the contents of cell B2 as the variable inside
the [] to get the filename as a variable. Once I get that working, I can
just stick the function I have in B2 to build the filename into the []. It
seems whatever I stick in the brackets is treated as a filename and excel
tries to open it, even if it is something like [$B2].
I'm sure there's some wizbang VBA way to do this, but I'd like to avoid VBA
if I can. I don't have it in me to learn "yet another language."
The online docs have been no help and I haven't seen any simular post here
in this newsgroup.
Bookmarks