I know that the question was asked many times before, I checked the previous sentences, but I could not run my code.
So, I have a folder called "Report", which also contains several folders. These folders contain the .xlsx and .zip files.
Each file also contains a folder called "2016" and below it are 12 folders "January", "February", ..., "December".
Here is an example of one subfolder

What I want to do is iterate over all of these subfolders and move the .xlsx and .zip files to a monthly folder based on createdDate.
For example, all .xlsx and .zip in a location created in November will be moved to the November folder in 2016 in the same location.
, , .
Sub Move_Files_To_Folder()
Dim Fso As Object
Dim FromPath As String
Dim ToPath As String
Dim FileInFromFolder As Object
'Change Path
FromPath = "C:\Report\Shipment\"
ToPath = "C:\Report\Shipment\2016\"
Set Fso = CreateObject("scripting.filesystemobject")
For Each FileInFromFolder In Fso.GetFolder(FromPath).Files
'Change month and year
If (Month(FileInFromFolder.DateCreated)) = 11 And (year(FileInFromFolder.DateCreated)) = 2016 _
And (InStr(1, FileInFromFolder.name, ".xlsx") Or InStr(1, FileInFromFolder.name, ".zip")) Then
FileInFromFolder.Move (ToPath & MonthName(Month(FileInFromFolder.DateCreated)) & "\")
End If
Next FileInFromFolder
End Sub
, .
, ? .