This is my current code, I don't want to add sheet name where I am getting error, because all workbooks have one sheet and all have a different sheet name. I want to combine 42 sheets into one, but only want to copy the rows after the heading in each sheet
Sub CopytoOneSheet()
Application.ScreenUpdating = False
Dim wkbDest As Workbook
Dim wkbSource As Workbook
Set wkbDest = ThisWorkbook
Dim LastRow As Long
Const strPath As String = "C:\Users\me\OneDrive - Company\New folder\"
ChDir strPath
strExtension = Dir("*.xls*")
Do While strExtension <> ""
Set wkbSource = Workbooks.Open(strPath & strExtension)
With wkbSource
LastRow = .ActiveSheet.Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
.ActiveSheet.Range("A2:S" & LastRow).Copy wkbDest.Sheets("All_TripSum").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0) '**Getting run-time error '9': Subscript out of range here**
.Close savechanges:=False
End With
strExtension = Dir
Loop
Application.ScreenUpdating = True
End Sub