dessole mais la solution marche dans le classeur,mais ne marche pas dans mon fichier original car il sont integre dans un tableau"Détailsfacture"
donc voici la formule VBA
Private Sub b_ok_Click()
Set fVTE = Sheets("MODELE")
If Me.TextBox7 = "" Then
MsgBox "saisir une qte!"
Me.TextBox7.SetFocus
Exit Sub
End If
Set pos = fBD.[F:F].Find(what:=lot)
If IsNumeric(Me.TextBox7) Then fBD.Cells(pos.Row, "d") = fBD.Cells(pos.Row, "d") - CDbl(Me.TextBox7)
'ligne = fVTE.[A65000].End(xlUp).Row + 1
ligne = Application.Max(15, fVTE.[A65000].End(xlUp).Row + 1)
fVTE.Cells(ligne, 2) = CDbl(Me.TextBox7)
fVTE.Cells(ligne, 3) = Me.ListBox1.List(0, 0)
raz
Me.ListBox1.Clear
End Sub
comment faire pour integre le resustat de mon userform dans un tableau
merci