Does this fit your needs?
'Always use option excplicit. You need to declare all variables, it makes the code more robust.
Option Explicit
Sub GetSheets()
'Declaring the variables to be used
Dim Path As String
Dim filename As String
Dim masterWorkbook As Workbook
Dim currentWb As Workbook
Dim lastRow As Long
'Disable screenupdates making it faster (and opening workbooks will not flash the screen constantly)
Application.ScreenUpdating = False
'Disable alerts (Excel asks if you wan't to spare the copied data in memory after closing otherwise)
Application.DisplayAlerts = False
Set masterWorkbook = ThisWorkbook
'Folder with files
Path = "C:\Users\Document Folder\"
'Go throw all excel files in folder and open them
filename = Dir(Path & "*.xls*")
Do While filename <> ""
Set currentWb = Application.Workbooks.Open(filename:=Path & filename, ReadOnly:=True)
'Find last used cell in "MasterData" sheet
lastRow = masterWorkbook.Sheets("MasterData").UsedRange.Row + 2
' Add the open File name in column A
masterWorkbook.Sheets("MasterData").Range("A" & lastRow).Value = currentWb.Name
' Copy data from range "A1:X100" from open file, sheet "Order" to column "C:Z" in "MasterData" sheet
currentWb.Sheets("Order").Range("A1:X100").Copy
masterWorkbook.Sheets("MasterData").Range("C" & lastRow).PasteSpecial Paste:=xlPasteValuesAndNumberFormats
'Close opened file
currentWb.Close
filename = Dir()
Loop
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub
Bookmarks