DEAR SIR
將ALL EXCEL 置於 C:\AAA資料夾內
執行如下 就可 ALL EXCEL 自動轉換 至單一EXCEL中 試試
Sub yy()
Dim a As Workbook, f$
Dim p$, sh As Worksheet
Set a = ThisWorkbook
p = "C:\AAA\"
f = Dir(p & "*.xls")
Application.ScreenUpdating = False
Do While f <> ""
Workbooks.Open p & f
For Each sh In Worksheets
'On Error Resume Next
X = WorksheetFunction.CountA(sh.Range("a1:iv65536"))
Y = ActiveWorkbook.Name
If X <> 0 Then
sh.Copy after:=a.Sheets(a.Sheets.Count)
End If
Next
Windows(f).Close True
f = Dir
Loop
Application.ScreenUpdating = True
Sheet1.Select
Range("A1").Select
End Sub