Option Explicit Const PathSource = "d:\Test.txt" Const PathDest = "D:\xxx\yy\copy_test.txt" Dim objFso Dim strFolder Set objFso = CreateObject("Scripting.FileSystemObject") 'Contrôle existence fichier en entrée If Not objFso.FileExists(PathSource) Then MsgBox PathSource,,"Erreur Fichier" 'Contrôle existence du répertoire de destination strFolder = Left(PathDest, Len(PathDest)-Len(Mid(PathDest, InStrRev(PathDest, "") + 1))) If Not objFso.FolderExists(strFolder) Then MsgBox strFolder,,"Erreur répertoire" 'Copie du fichier objFso.CopyFile PathSource, PathDest If Err.Number <> 0 Then MsgBox Err.Number &vbCrLf& Err.Source &vbCrLf& _ Err.Description : Err.Clear End If Set objFso = Nothing