Try this one, just change red values to your folder path to files and name of sheet in master wokrbook.
Sub CollateReportFromFiles()
'Open all .XLS in specific folder and import data(2007 compatible)
Dim strFileName As String, strPath As String, MyVal As String
Dim wbkOld As Workbook, wbkNew As Workbook, ws As Worksheet
Dim NR As Long
Application.EnableEvents = False
Application.DisplayAlerts = False
Set wbkNew = ThisWorkbook
strPath = "C:\abc\"
strFileName = Dir(strPath & "*.xlsx")
wbkNew.Activate
NR = 1
'Collate data from each file in the designated folder
Do While Len(strFileName) > 0
Set wbkOld = Workbooks.Open(strPath & strFileName)
wbkOld.Worksheets("DATA").Rows(2).Copy
wbkNew.Sheets("Report").Range("A" & NR).PasteSpecial xlValues
NR = NR + 1
strFileName = Dir
wbkOld.Close False
Loop
'Cleanup
ActiveSheet.Columns("A:Z").AutoFit
Application.DisplayAlerts = True
Application.EnableEvents = True
End Sub
Bookmarks