J'essais d'être plus explicite, dans mon code ci dessous, la textBox "TextBox_Montant" doit être calculer lors de la saisie du formulaire avec des valeurs que je dois moi taper.. J'espère avoir été un peu plus clair...
Je vous joint également le fichier excel
Private Sub ComboBox_StatutInternet_Change()
End Sub
Private Sub CommandButton1_Click()
'Saisie de l'opération dans la base opération
Dim ligne As Integer
ligne = Sheets("operations").[a1].End(xlDown).Row + 1
Sheets("operations").Range("a" & ligne) = ComboBox_Comptes
Sheets("operations").Range("b" & ligne) = ComboBox_MoyenPaiement
Sheets("operations").Range("c" & ligne) = TextBox_Pieces
Sheets("operations").Range("d" & ligne) = CDate(TextBox_DateOp)
Sheets("operations").Range("e" & ligne) = CDate(TextBox_Datedebit)
Sheets("operations").Range("f" & ligne) = TextBox_Libelle
Sheets("operations").Range("g" & ligne) = ComboBox_Affectation
Sheets("operations").Range("h" & ligne) = ComboBox_Tiers
Sheets("operations").Range("i" & ligne) = ComboBox_StatutInternet
Sheets("operations").Range("j" & ligne) = CCur(TextBox_Montant)
Unload Me
End Sub