Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Application.ScreenUpdating = False
DL = Range("A65500").End(xlUp).Row
For L = 6 To DL - 2 ' pas d'analyse sur les deux dernières lignes
If Val(Cells(L, "T")) > 0 Then
If Cells(L, "E") = "" Or Cells(L, "F") = "" Or Cells(L, "M") = "" Or Cells(L, "N") = "" Then
MsgBox "Une ou plusisurs lignes sont incomplètes." & Chr(10) & Chr(10) & _
"Enregistrement impossible."
Cancel = True
Exit Sub
End If
End If
Next L
End Sub