Button de cde modifier à partir d'un TextBox/ ListBox

Bonjour

J'arrive pas à modifier mes cellules à partir d'un TextBox10 (ID pour notre ca

19project.xlsm (62.68 Ko)

s)

Voila le code :

'Modifier

Dim no_ligne As Integer

Dim i As Integer

'If Not ComboBox2.Value = "" Then

With Worksheets("Opérations")

no_ligne = TextBox10.ListIndex + 2

.Cells(no_ligne, 2).Value = TextBox9.Value

.Cells(no_ligne, 1).Value = TextBox10.Value

.Cells(no_ligne, 3).Value = TextBox11.Value

.Cells(no_ligne, 4).Value = TextBox12.Value

.Cells(no_ligne, 5).Value = TextBox13.Value

.Cells(no_ligne, 6).Value = TextBox14.Value

.Cells(no_ligne, 7).Value = TextBox15.Value

.Cells(no_ligne, 8).Value = TextBox16.Value

.Cells(no_ligne, 9).Value = TextBox17.Value

.Cells(no_ligne, 10).Value = TextBox18.Value

Me.CommandButton3.Enabled = False

End With

En piece jointe le fichier

Merci d'avance

Bonjour

Tu ne peux avoir de listindex avec un textbox

Ci joint ma solution

18project.xlsm (54.43 Ko)

A+ François

Merci fanfan38

Rechercher des sujets similaires à "button cde modifier partir textbox listbox"