Ok here's a start...
1. Backup your data first.
2. Create a file called Merge and insert this piece of VBA, save it as Merge.xlsm
Sub GetSheets()
Pth = "D:\!WORK\Install 2\"
j = 2
FlNm = Dir(Pth & "Monkey*.xlsb")
Do While FlNm <> ""
Workbooks.Open Filename:=Pth & FlNm, ReadOnly:=True
lastrow = ActiveWorkbook.Worksheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row
For i = 2 To lastrow
lastcell = ActiveWorkbook.Worksheets("Sheet1").Cells(i, Columns.Count).End(xlToLeft).Column
For k = 1 To lastcell
l = ActiveWorkbook.Worksheets("Sheet1").Cells(i, k)
Application.Workbooks("Merge.xlsm").Worksheets("Sheet1").Cells(j, k) = l
Next k
Application.Workbooks("Merge.xlsm").Worksheets("Sheet1").Cells(j, 28) = FlNm
j = j + 1
Next i
Workbooks(FlNm).Close
FlNm = Dir()
Loop
End Sub
Change the pathname (Pth) to where your Monkey folders are.
3) Insert a manual heading in row 1 for the 27 column names. Data will be copied from each workbook into the Merg.xlsm file from row 2 onwards.
This assumes the following:
All the Monkey*.xlsb files will have one worksheet called "Sheet1". If this is not the case then you'll need to change "Sheet1" in ActiveWorkBook to whatever the sheet is called in each Monkey file (This is assuming the same sheet name has been used in ALL Monkey files).
Again, am not sure what's gonna happen to your macros in the original sheets.
Also this purely copies the data so if there are any formulas you may end up with errors, but obviously I dont know what the data looks like or what formulas are being used.
Hope this helps.
Bookmarks