Yep that worked, although I guess my master sheet example was not clear, as I have many many workbooks to merge, each workbook of the same type as it gets added in needs to go in the row below the prvious one so as not to overwrite the data. So the first tab in the mastersheet will eventually have some 30+data rows with the top row being the headings filled by all the type1 workbooks.
Let me throw up my rather inelegant solution that needs one macro for each worokbook type, i.e. it's a hardcoded solution.
I realise I should have chosen a shorter example as not all of them have this many tabs :p
The things highlighted in red will always be different and where a line says "Range(Cells(no, 21), Cells(no, 22)).Select" The numbers represent the column number range for the copied items to be pasted into.
This code opens up every file in a folder (coded at the very top), and copy pastes the provided ranges into the mastersheet, then closes the input workbook, adds 1 to the row number, and then moves onto the next. The Masterspreadsheet is open while this macro runs.
Welcome any feed back on how to tidy this up or jsut have ONE macro and select the input location.
Bookmarks