Private Sub Workbook_BeforeClose(Cancel As Boolean)
With Sheets("Feuil1")
If .Range("b6") = vbNullString Then
MsgBox "Merci de compléter la cellule B6 avant de quitter"
Cancel = True
Else
Application.DisplayAlerts = False
ActiveWorkbook.Save
End If
End With
End Sub