C
Chuck
I am trying to get data from several workbooks into a worksheet.
Each item has its own workbook. I need to run a series of calculations for
each item and then reference that data into a worksheet in a different
workbook.
Lets say the source workbooks are named HP-1, HP-2, HP-3, ...
In my active worksheet, I want to reference data from the same location in
each of the source workbooks. As an example,
The source file name is HP-3.xls. The sourcefile worksheet name is
COOL_STR.
The value in C5 of my active worksheet is 3.
TO get the desired data I tried
=+'<path>["HP-"& Range("C5").Value &".xls"]COOL_STR'!$D$215
but it doesn't work.
I am trying to figure out the correct syntax to get Excel to find the source
file and return the value in Cell D215.
If I can find the correct syntax, I hope to be able to copy the formula down
a column and retrieve the values from the complete series of source files.
Can you help??
Each item has its own workbook. I need to run a series of calculations for
each item and then reference that data into a worksheet in a different
workbook.
Lets say the source workbooks are named HP-1, HP-2, HP-3, ...
In my active worksheet, I want to reference data from the same location in
each of the source workbooks. As an example,
The source file name is HP-3.xls. The sourcefile worksheet name is
COOL_STR.
The value in C5 of my active worksheet is 3.
TO get the desired data I tried
=+'<path>["HP-"& Range("C5").Value &".xls"]COOL_STR'!$D$215
but it doesn't work.
I am trying to figure out the correct syntax to get Excel to find the source
file and return the value in Cell D215.
If I can find the correct syntax, I hope to be able to copy the formula down
a column and retrieve the values from the complete series of source files.
Can you help??