Private Sub Ajout_Click()
Dim ok As Boolean,r as range
'ActiveSheet.Unprotect ("5158")
ok = IsDate(DateConsultation.Value)
If ok Then
Set r = Range("Tsauvegarde").ListObject.ListRows.Add.Range
r.Value = Array(nom, CDate(DateConsultation.Value), prenom, "", telephone, mail, adresse, designation1, montant1, designation2, montant2, designation3, montant3)
With Sheets("devis")
.Activate
.Range("j16") = CDate(DateConsultation.Value)
End With
'ActiveSheet.Protect Password:="5158"
Unload Me
End Sub