Sub attemptedsimplification()
Dim strPath As String
Dim originalfile, currentfile As Workbook
Set originalfile = ActiveWorkbook
strPath = "S:\Joshua\!Daily Reports from SBUs\To be filed\" 'where files are temporarily stored
ChDir strPath
'change extension
StrExtension = Dir(strPath & "*.xls")
Do While StrExtension <> ""
Workbooks.Open (strPath & StrExtension)
Set currentfile = ActiveWorkbook
originalfile.Activate
For a = 1 To currentfile.Worksheets.Count
thename = Sheets(a).Name
currentfile.Activate
On Error GoTo errorhandler1
Sheets(thename).Select
Range(Cells(10, 10).End(xlToLeft).End(xlUp), Cells(10, 10).End(xlToRight).End(xlDown)).Copy
originalfile.Activate
Sheets(a).Cells(1, 1).End(xlDown).Offset(1, 0).Select
ActiveSheet.Paste
Next a
currentfile.Activate
Application.DisplayAlerts = False
ActiveWorkbook.Close
Application.DisplayAlerts = True
StrExtension = Dir
Loop
Exit Sub
':::::::::::::::::::::::::::::::::::
'::::::::: Error Hanlder 1 ::::::::
':::::::::::::::::::::::::::::::::::
errorhandler1:
MsgBox "Could not find sheet named " & thename & vbCrLf & "in file " & currentfile.Name, vbOKOnly
End Sub