Bonjour,
Proposition, si la dernière sélection en colonne K fait dépasser le total de 3 en P62 alors , il y a émission d'un message suivi de l'annulation de la dernière saisie.
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
On Error GoTo Sortie
Application.EnableEvents = False
If Not Application.Intersect(Target, Range("K8:K59")) Is Nothing Then
If Range("P62") > 3 Then
MsgBox "maximum atteint, dernière saisie annulée"
Target.Value = ""
End If
End If
Sortie:
Application.EnableEvents = True
End Sub
Cdlt