Bonjour PabloC, bonjour à tous
Dans ton formulaire FrmCommande,
remplace tout ton code par celui-ci et vois
Option Explicit
Private Sub btnAnnuler_Click() 'annule la saisie
Unload Me
End Sub
Private Sub btnSuivant_Click()
If txtMontant <> "" Then
txtMontant.Value = Format(txtMontant.Value, "# ##0,00 €")
End If
If obtnCommande = True Then 'Saisie d'une commande
Sheets("Suivi Commande").Activate
Range("B3").Select
Selection.End(xlDown).Select
Selection.Offset(1, 0).Select
ActiveCell = txtNumDoc
ActiveCell.Offset(0, 1).Value = txtDate
ActiveCell.Offset(0, 3).Value = cboClient
ActiveCell.Offset(0, 4).Value = txtMontant.Value
End If
If obtnDevis = True Then 'Saisie d'un devis
Sheets("Suivi Commande").Activate
Range("H3").Select
Selection.End(xlDown).Select
Selection.Offset(1, 0).Select
ActiveCell = txtNumDoc
ActiveCell.Offset(0, 1).Value = txtDate
ActiveCell.Offset(0, 3).Value = cboClient
ActiveCell.Offset(0, 4).Value = txtMontant.Value
End If
End Sub
Private Sub obtnCommande_Click() 'mise en place du choix de commande OU devis
If obtnCommande = True Then obtnDevis = False
If obtnDevis = True Then obtnCommande = False
End Sub
Private Sub UserForm_Initialize() 'renseignement automatique de la date du jour dans la txtDate
txtDate.Value = DateValue(Date)
txtMontant.Value = Format(txtMontant.Value, "# ##0.00 €")
End Sub
Et surtout, dans la colonne F de ton suivi de commande, n'oublie pas de mettre ton format de cellule en monétaire à -1 234,10 €
Je n'ai pas regardé le reste
En fait j'ai supprimé l'événement keypress de ton textbox, mis cela
If txtMontant <> "" Then
txtMontant.Value = Format(txtMontant.Value, "# ##0,00 €")
End If
en début de ton évenement : btnSuivant_Click()
et charger ta cellule en précisant ton textbox montant avec .value
Bon courage