Sub record()
Dim chemin$
chemin = Mid(ThisWorkbook.Path, 1, InStrRev(ThisWorkbook.Path, "\")) & [G9].Text & "\"
If Dir(chemin, vbDirectory) = "" Then MkDir chemin
If Dir(chemin & ThisWorkbook.Name) <> "" Then MsgBox "ce fichier & dossier existe déjà": Exit Sub
ThisWorkbook.SaveCopyAs chemin & ThisWorkbook.Name
End Sub