6,216
社区成员




Sub test()
Dim sFolder As String
Dim wb As Workbook
Dim i As Long
With Application.FileSearch
.NewSearch
.LookIn = "folderpath" '
.SearchSubFolders = True
.filename = "*.xls"
.FileType = msoFileTypeExcelWorkbooks
If .Execute() > 0 Then
'
Else
'Error Message
End If
End With
End Sub