Sub Export_feuil()
Dim LeNom As String, LeRep As String, extension As String
Dim Rep As Integer
extension = ".xlsm"
LeRep = "C:\Users\bapti\Documents\"
LeNom = "Export_TEST" & extension
'
On Error Resume Next
MkDir Chemin
On Error GoTo 0
'On copie les feuilles à garder
Sheets("Partie2").Copy 'respecter la casse
Sheets("Partie4").Copy 'respecter la casse
With ActiveWorkbook
.SaveAs Filename:=LeRep & LeNom, FileFormat:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
.Close
End With
'
Rep = MsgBox("L'opération s'est achevée avec succès")
'
End Sub