Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Dim NomSave As String
NomSave = "Classeur1.xlsx"
Application.EnableEvents = False
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs NomSave, FileFormat:=xlOpenXMLWorkbook
ThisWorkbook.Close , False
Application.DisplayAlerts = True
Application.EnableEvents = True
End Sub