Private Sub CommandButton1_Click()
If GRADE = "" Or NOM = "" Or PRENOM = "" Or SEXE = "" Then
MsgBox "Vous devez renseigner les 4 critères d'identification.", 0, "Information"
Else
Range("B13").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = GRADE.Value
ActiveCell.Offset(0, 1).Select
ActiveCell.Value = NOM.Value
ActiveCell.Offset(0, 1).Select
ActiveCell.Value = PRENOM.Value
ActiveCell.Offset(0, 1).Select
ActiveCell.Value = SEXE.Value
ActiveCell.Offset(0, 1).Select
Range("B13").Select
Range("B13").Copy
With ActiveCell.Value
End With
ActiveCell.PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
'MISE EN FORME
MsgBox "Personnel enregistré."
Unload Me
End If
End Sub