Sub GetData()
Const sPath = "C:\Users\scott.sy.taw\Desktop\Scottie VBA part 2\" ' Change to suit ; ensure the path ends with a backslash
Dim sFil As String
Dim ws As Worksheet
Dim rowie As Integer
Dim wb As Workbook
Dim colcol As Integer
Dim lastrow As Integer
Set ws = ThisWorkbook.Worksheets("Sheet1") 'The sheet name you want to consolidate to
Application.ScreenUpdating = False
sFil = Dir(sPath & "*.xlsx*")
Do While sFil <> ""
Set wb = Workbooks.Open(sPath & sFil)
wb.Worksheets("Sheet1").Activate
With ActiveSheet
lastrow = ActiveSheet.Cells.Find("rowrow", SearchOrder:=xlByRows, LookIn:=xlValues, SearchDirection:=xlPrevious).row
'rowie = .Range("B1:B500").Find("rowrow").row
.Range(.Cells(lastrow, 1), .Cells(lastrow, 100)).Copy ws.Range("Iv1").End(xlToLeft).Offset(, 1)
End With
wb.Close 0
sFil = Dir
Loop
Range("A1:R1").Select
Selection.Copy
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=True
Application.ScreenUpdating = True
Sheets("Sheet1").Range("A3:A200").Copy Destination:=Sheets("Sheet2").Range("A1")
End Sub