Bonjour,
C'est votre date qui provoque le bug.
Sub SauveFac()
Dim Chemin As String, Nom As String, MaDate As String
Dim I As Integer
With ThisWorkbook
ChDir .Path
Chemin = ThisWorkbook.Path & "\"
With Range("DateFacture")
MaDate = Format(Day(.Value), "00") & "-" & Format(Month(.Value), "00") & "-" & Year(.Value)
End With
End With
If Range("NomClient") = "" Or Range("NumeroFacture") = "" Then
MsgBox "Le nom du client n'est pas renseigné" & Chr(10) & "ou le numéro de facture n'est pas saisi" _
& Chr(10) & Chr(10) & "Arrêt de la macro"
Exit Sub
End If
Application.ScreenUpdating = False
Nom = Range("NomClient") & "_" & MaDate & "_" & Range("NumeroFacture")
Debug.Print Nom
Sheets("Factures").Copy
With ActiveWorkbook
With Sheets(1)
For I = .Shapes.Count To 1 Step -1
With .Shapes(I)
Select Case .Name
Case "Image 10", "Rectangle 1", "Rectangle 2"
.Delete
End Select
End With
Next I
End With
.SaveAs Filename:=Chemin & Nom & ".xlsx"
.Close
End With
Application.ScreenUpdating = True
End Sub