Hello,
I have a workbook - let's call it "Final" - with sheets labeled 52, 53, 54, ..., up to 81. I have separate workbooks in a folder on a network drive labeled meas52.xlsx, meas53.xlsx and so on. Each of those "meas##.xlsx" files contains three worksheets with information that I am trying to pull into its one corresponding worksheet in the "Final" workbook.
There seems to be some code out there that pulls info from a folder using the filepath etc., but I am struggling to modify it for my purposes. Below are the steps I would like to execute, and unfortunately do not have the syntax for in VBA.
1) Get the tab name in the "Final" workbook - e.g. "52"
2) Locate the filepath "C:\MyComputer\blahblah\Folder\meas"&"[tab number]"&".xlsx"
For each sheet in the "meas##.xlsx" workbook:
3) Copy contents from sheet
4) Paste as values in corresponding table in "Final workbook"
Basically, I want to write a loop that will run through and populate all the information in each of the tabs in the Final workbook! Please help!
Thanks,
Alison
I have a workbook - let's call it "Final" - with sheets labeled 52, 53, 54, ..., up to 81. I have separate workbooks in a folder on a network drive labeled meas52.xlsx, meas53.xlsx and so on. Each of those "meas##.xlsx" files contains three worksheets with information that I am trying to pull into its one corresponding worksheet in the "Final" workbook.
There seems to be some code out there that pulls info from a folder using the filepath etc., but I am struggling to modify it for my purposes. Below are the steps I would like to execute, and unfortunately do not have the syntax for in VBA.
1) Get the tab name in the "Final" workbook - e.g. "52"
2) Locate the filepath "C:\MyComputer\blahblah\Folder\meas"&"[tab number]"&".xlsx"
For each sheet in the "meas##.xlsx" workbook:
3) Copy contents from sheet
4) Paste as values in corresponding table in "Final workbook"
Basically, I want to write a loop that will run through and populate all the information in each of the tabs in the Final workbook! Please help!
Thanks,
Alison