As you have supplied no code, this should be sufficient enough to get you started. You’ll need to edit this and fix this to suite your needs.
Sub test()
Dim Wb1 As Workbook, Wb2 As WorkBook, Wb3 As Workbook
Dim MainBook As Workbook
'Open All workbooks first:
Set Wb1 = Workbooks.Open(" path to copying book ")
Set Wb2 = Workbooks.Open(" path to copying book ")
Set Wb3 = Workbooks.Open(" path to copying book ")
Set MainBook = Workbooks.Open(" path to destination book ")
'Now, copy what you want from wb1:
wb1.Sheets("Sheet1").Cells.Copy
'Now, paste to Main worksheet:
MainBook.Sheets("Sheet1").Range("A1").PasteSpecial
'Now, copy what you want from wb2:
wb2.Sheets("Sheet1").Cells.Copy
'Now, paste to Main worksheet:
MainBook.Sheets("Sheet2").Range("A1").PasteSpecial
'Now, copy what you want from wb3:
wb3.Sheets("Sheet1").Cells.Copy
'Now, paste to Main worksheet:
MainBook.Sheets("Sheet3").Range("A1").PasteSpecial
'Close Wb's:
Wb1.Close
Wb2.Close
Wb3.Close
MainBook.Save
MainBook.Close
End Sub
5
solved Copying and Pasting between Workbooks VBA