i have an application where an inelegant (non VBA) solution will be more than adequate:
i have a series of workbooks: book1, book2, etc etc
all are residing on disk and closed.
in a new sheet, i simply want to grab a block of data (say a 4x6 array: a1:d6) from each and append them onto each other. Thus book1's block will occupy the first 4 rows, then book2's block etc etc.
So with 100 files, i'll end up with a 400x6 array of data.
I can form a formula such as='K:\[book1.xls]Sheet1'!A1 to manually grab the data, but what i'd like to do is create that programmatically. In other words, i'd like to have a column J where the first 4 rows are "book1.xls", the next "book2.xls" etc
and then form something like:
"'k:\["&"j1&"]Sheet1'!A1"
and use that to grab A1 from book1
if i can do that, i can simply copy that statement (and vary both the sheet and the row/column and grab all the data.
definitely klunky, but will work for this purpose.
any idea how to 'indirectly' grab data in such a way? thanks
Bookmarks