Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim ret As Integer
ret = MsgBox("Souhaitez vous fermer ce classeur ?", vbYesNo + vbInformation)
If ret = vbNo Then
Cancel = True
Else
Application.ScreenUpdating = False
Application.EnableEvents = False
Application.DisplayAlerts = False
Application.CommandBars("Ply").Enabled = -True
Application.CommandBars("Cell").Enabled = True
Application.CellDragAndDrop = True
Application.DisplayFullScreen = False
Application.ScreenUpdating = False
Application.EnableEvents = True
Application.DisplayAlerts = True
ThisWorkbook.Saved = True
End If