Re,
Il manque effectivement un End IF après le message "Les Données on été ajoutées"...
Private Sub cmd_cmd_ajouter_Click()
Dim Flag As Boolean
Dim Ligne As Integer
MsgBox "Veuillez verifier tous les champs saisie"
If MsgBox("confirmez-vous l'ajout des données?", vbYesNo, "confirmation") = vbYes Then
'integre le texte au tableau BDD COMMANDES ET CLIENT
Ligne = OCOM.Range("A456541").End(xlUp).Row + 1
OCOM.Cells(Ligne, 1) = txt_cmd_num.Value
OCOM.Cells(Ligne, 2) = txt_cmd_date_achat.Value
OCOM.Cells(Ligne, 3) = txt_cmd_fabricant.Value
OCOM.Cells(Ligne, 4) = txt_cmd_produit.Value
OCOM.Cells(Ligne, 5) = txt_cmd_statut.Value
OCOM.Cells(Ligne, 6) = txt_cmd_ca.Value
OCOM.Cells(Ligne, 7) = txt_cmd_accompte.Value
OCOM.Cells(Ligne, 8) = txt_cmd_delai_initial.Value
OCOM.Cells(Ligne, 9) = txt_cmd_conf.Value
OCOM.Cells(Ligne, 10) = txt_cmd_vendeur.Value
OCOM.Cells(Ligne, 11) = txt_cmd_commentaires.Value
Ligne = OCLI.Range("A456541").End(xlUp).Row + 1
OCLI.Cells(Ligne, 1) = txt_clt_nom.Value
OCLI.Cells(Ligne, 2) = txt_clt_prenom.Value
OCLI.Cells(Ligne, 3) = txt_clt_mail.Value
OCLI.Cells(Ligne, 4) = txt_clt_portable.Value
OCLI.Cells(Ligne, 5) = txt_clt_adresse.Value
OCLI.Cells(Ligne, 6) = txt_clt_code_postal.Value
OCLI.Cells(Ligne, 7) = txt_clt_ville.Value
OCLI.Cells(Ligne, 8) = txt_clt_commentaires.Value
MsgBox "Les données on bien été ajouté"
End If
If MsgBox("continuer", vbYesNo, "continuer") = vbYes Then
Unload UserForm4
UserForm4.Show
End If
End Sub