Sub Move_File_MultiFolder()
Dim FromPath As String
Dim ToPath As String
FromPath = "C:\Users\Ian\Desktop\EBAY\ACCOUNTS\CURRENT SHEETS"
'// Folder 1
ToPath = "C:\Users\Ian\Desktop\EBAY\ACCOUNTS\CURRENT SHEETS\06 JUNE"
Call Copy_Certain_Files_In_Folder(FromPath, ToPath)
'// Folder 2
ToPath = "C:\Users\Ian\Desktop\EBAY\ACCOUNTS\CURRENT SHEETS\07 JUlY"
Call Copy_Certain_Files_In_Folder(FromPath, ToPath)
'// Folder 3
ToPath = "C:\Users\Ian\Desktop\EBAY\ACCOUNTS\CURRENT SHEETS\08 AUGUST"
Call Copy_Certain_Files_In_Folder(FromPath, ToPath)
'// So on....
End Sub
Private Sub Copy_Certain_Files_In_Folder(FromPath As String, ToPath As String)
'This example copy all Excel files from FromPath to ToPath.
'Note: If the files in ToPath already exist it will overwrite
'existing files in this folder
Dim FSO As Object
'Dim FromPath As String
'Dim ToPath As String
Dim FileExt As String
'FromPath = "C:\Users\Ian\Desktop\EBAY\ACCOUNTS\CURRENT SHEETS"
'ToPath = "C:\Users\Ian\Desktop\EBAY\ACCOUNTS\CURRENT SHEETS\06 JUNE"
FileExt = "*.xl*" '<< Change
'You can use *.* for all files or *.doc for Word files
If Right(FromPath, 1) <> "\" Then
FromPath = FromPath & "\"
End If
Set FSO = CreateObject("scripting.filesystemobject")
If FSO.FolderExists(FromPath) = False Then
MsgBox FromPath & " doesn't exist"
Exit Sub
End If
If FSO.FolderExists(ToPath) = False Then
MsgBox ToPath & " doesn't exist"
Exit Sub
End If
FSO.CopyFile Source:=FromPath & FileExt, Destination:=ToPath
MsgBox "You can find the files from " & FromPath & " in " & ToPath
End Sub