Dear all
I am struggling no loop through all files first before next sf. Could someone help please.
I have tried this but not work
Thank you very much
Rich (BB code):
Sub LopFolder()
Dim fso As New FileSystemObject
Dim f As Folder, sf As Folder
Dim MyPath As String, MyFile As String, File As Workbook
Set f = fso.GetFolder("E:\Da\")
For Each sf In f.SubFolders
MyFile = Dir(sf & "\" & "*.xls*") ''''''''''''''''Loop through all this files before goto next sf.
MyFile = Dir()
Next
End Sub
I have tried this but not work
Rich (BB code):
For Each File in sf
Thank you very much