Sub tutu()
Dim G As Byte
With Worksheets("TEST1")
For G = 28 To 42
If Cells(G, 12) <> "" And IsNotNumeric(Range("M" & x).Value) And Len(Range("M" & x).Value) <> 6 Then _
MsgBox "TEST", vbCritical, "Contrôle format "
Exit Sub
End If
Next
For G = 54 To 68
If Cells(G, 12) <> "" And IsNotNumeric(Range("M" & x).Value) And Len(Range("M" & x).Value) <> 6 Then _
MsgBox "TEST", vbCritical, "Contrôle format "
Exit Sub
End If
Next
For G = 80 To 94
If Cells(G, 12) <> "" And IsNotNumeric(Range("M" & x).Value) And Len(Range("M" & x).Value) <> 6 Then _
MsgBox "TEST", vbCritical, "Contrôle format "
Exit Sub
End If
Next
End With
End Sub