Sub Get_The_Totals()
Dim sh As Worksheet
Dim LR As Long
Dim strFile As String, mFolder As String, b As String
Dim a As Long
Set sh = ThisWorkbook.Sheets(1)
LR = sh.Cells(Rows.Count, "A").End(xlUp).Row + 1
mFolder = "C:\TempA\" ' <<<<<<<<< only search workbooks here
strFile = Dir(mFolder & "*.xls*")
Application.ScreenUpdating = False
Do While strFile <> ""
Workbooks.Open mFolder & strFile
b = ActiveWorkbook.Name
a = WorksheetFunction.Sum(Sheets(25).Range("A1", Sheets(2).Range("A" & Rows.Count).End(xlUp)))
sh.Cells(LR, 1) = b
sh.Cells(LR, 2) = a
ActiveWorkbook.Close True
strFile = Dir
LR = LR + 1
Loop
Application.ScreenUpdating = True
End Sub