Bonjour, Salut Amadéus,
Essaye ton code modifié ci-joint :
Sub PAGE_SUIVANTE()
If Len(Range("B4")) < 13 Then MsgBox (" N° DE SECU INCOMPLET"): Exit Sub
If Range("B4") = "" Then MsgBox (" AU MOINS LES 5 PREMIERS CHIFFRES DU N° DE SECU"): Exit Sub
If Len(Range("B4")) > 15 Then MsgBox (" NIR ERRONE"): Exit Sub
If Mid(Range("B4"), 2, 2) = Right(Range("B10"), 2) And Mid(Range("B4"), 4, 2) = Mid(Range("B10"), 4, 2) Then
MsgBox (" CORRECT")
Else
MsgBox (" LE N° DE SECU NE CORRESPOND PAS A LA DATE DE NAISSANCE")
End If
End Sub