S
stevesail
I have an open worksheet (summary.xls) that contains unique number
(e.g. 2012) in column 1. Those unique numbers are also used as th
filenames of other workbooks (e.g. 2012.xls) that I need to access.
I'd like to loop through the unique values in column 1 of summary.xls
successively opening the corresponding .xls file, copying some value
out of that opened file back into summary.xls. How do I open thos
other files (eg. 2012.xls) and make them the active workbook, so I ca
copy the info from them, then close those files.
I know how to open an individual file from a dialog and make it activ
via:
Application.FindFile
FileN = ActiveWorkbook.Name
But using an Open "filename" statement, then
FileN = ActiveWorkbook.Name
doesn't make the "opened" file active
(e.g. 2012) in column 1. Those unique numbers are also used as th
filenames of other workbooks (e.g. 2012.xls) that I need to access.
I'd like to loop through the unique values in column 1 of summary.xls
successively opening the corresponding .xls file, copying some value
out of that opened file back into summary.xls. How do I open thos
other files (eg. 2012.xls) and make them the active workbook, so I ca
copy the info from them, then close those files.
I know how to open an individual file from a dialog and make it activ
via:
Application.FindFile
FileN = ActiveWorkbook.Name
But using an Open "filename" statement, then
FileN = ActiveWorkbook.Name
doesn't make the "opened" file active