D
davegb
I have 73 workbooks that I want to copy data from one of the
worksheets and put it all into a single workbook (not one of the 73)
which will then tally the results. Before I can even start to write
code, I have a problem I'm not sure how to deal with. If I write a For
Each loop to open each workbook in the folder in turn, if the tally
workbook is in the same directory, it's going to try to open that one
and, I imagine, will hang the macro because that workbook
(ThisWorkbook) will already be open. So does the tally workbook have
to be in a different directory? Or, can I test each workbook as it is
selected , before it is opened) to see if it's ThisWorkbook and have
it skip ThisWorkbook and go on the the next? Any suggestions as to the
best way to handle this kind of situation?
worksheets and put it all into a single workbook (not one of the 73)
which will then tally the results. Before I can even start to write
code, I have a problem I'm not sure how to deal with. If I write a For
Each loop to open each workbook in the folder in turn, if the tally
workbook is in the same directory, it's going to try to open that one
and, I imagine, will hang the macro because that workbook
(ThisWorkbook) will already be open. So does the tally workbook have
to be in a different directory? Or, can I test each workbook as it is
selected , before it is opened) to see if it's ThisWorkbook and have
it skip ThisWorkbook and go on the the next? Any suggestions as to the
best way to handle this kind of situation?