Need to reference multiple workbooks
Hello,
This may be a basic Excel question, but I have a feeling I need to use some VB. I need to know what's possible.
I have been sent several workbooks. Each workbook contains information about a single item. I need to consolidate the information about many items into a single workbook.
Workbooks are named similar to this:
Workbook001.xls
Workbook002.xls
Workbook003.xls
To reference a cell from another workbook, I use this syntax:
'C:\pathname\001\[Workbook001.xls]Sheet1'!$D$4
But I need to do this with a lot of numbers:
'C:\pathname\002\[Workbook002.xls]Sheet1'!$D$4
'C:\pathname\003\[Workbook003.xls]Sheet1'!$D$4
etc.
Is it possible to automate this process? Furthermore, the numbers I have are not sequential, but they ARE contained in a column in the master workbook. So, something like this:
'C:\pathname\$A1\[Workbook$A1.xls]Sheet1'!$D$4
I've been teaching myself Excel functions over the past few weeks, but it's difficult to find tutorials on linked workbook syntax... help?