jo15765
Well-known Member
- Joined
- Sep 23, 2011
- Messages
- 591
Hello - I need to iterate each workbook in a given directory and copy the data from the first worksheet starting on row 2 'til the end of the worksheet to a "master" workbook. This is psuedocode of what I need to do
1) Create a new .xlsx called Master
2) Open first workbook in C:\Test\ and copy all rows from row 2 -> end of workbook
3) Paste data in Master workbook starting on row 2
4) Open second workbook in C:\Test\ and copy all rows from row 2 -> end of workbook
5) Paste data in Master workbook starting on the first empty row (of course would change each paste)
6) Rinse and repeat until all workbooks have been opened and copy/pasted
7) Save Master workbook
1) Create a new .xlsx called Master
2) Open first workbook in C:\Test\ and copy all rows from row 2 -> end of workbook
3) Paste data in Master workbook starting on row 2
4) Open second workbook in C:\Test\ and copy all rows from row 2 -> end of workbook
5) Paste data in Master workbook starting on the first empty row (of course would change each paste)
6) Rinse and repeat until all workbooks have been opened and copy/pasted
7) Save Master workbook