Private Sub cmdquitte_Click()
Dim i As Integer
i = msgbox("ATTENTION, Voulez vous sauvegarder avant de quitter ?", vbYesNoCancel, "Modification")
If i = vbYes Then
ThisWorkbook.Save
Unload Me
Application.Quit
ElseIf i = vbNo Then Unload Me: ThisWorkbook.Saved = True: Application.Quit
ElseIf i = vbCancel Then Exit Sub
End If
End Sub