Sub copyall()
For i = 1 To 5 '把这个数字改成你的文件总数
Set excel_Book = Workbooks.Open("E:\excel\" & i &".xlsx") '地址写作"E:\xxx\xxx\"保留英文双引号
Set excel_Sheet = excel_Book.Worksheets("Sheet1")
'这里调用你的sub
Call 文件
Next
Set excel_Sheet = Nothing
Set excel_Book = Nothing
End Sub