Sub FolderSync2()
Dim objWS
Dim Path1 As String, Path2 As String
Dim strMyDoc As String
Set objWS = CreateObject("wscript.shell")
strMyDoc = objWS.SpecialFolders("MyDocuments")
Path1 = strMyDoc & "\*.xls*"
Path2 = "C:\temp"
Call XcopyFiles(Path1, Path2)
End Sub
Sub XcopyFiles(strSource, strDestination)
Set wsh = CreateObject("wscript.shell")
wsh.Run "xcopy.exe """ & strSource & """ """ & strDestination & """ /d /s /y /h /r", 1, True
Set wsh = Nothing
End Sub