Private Sub Workbook_BeforePrint(Cancel As Boolean)
If Not ThisWorkbook.Saved Then
If MsgBox("Vous devez sauvegarder avant d'imprimer" & vbLf & _
"Voulez-vous sauvegarder ?", vbQuestion + vbYesNo) = vbYes Then
ThisWorkbook.Save
End If
End If
If Not ThisWorkbook.Saved Then Cancel = True
End Sub