1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Private Sub CommandButton3_Click()
Dim Lig As Long
Lig = ListBox1.ListIndex + 2
With Worksheets("Opérations")
.Cells(Lig, 2).Value = TextBox9.Value
.Cells(Lig, 1).Value = TextBox10.Value
.Cells(Lig, 3).Value = TextBox11.Value
.Cells(Lig, 4).Value = TextBox12.Value
.Cells(Lig, 5).Value = TextBox13.Value
.Cells(Lig, 6).Value = TextBox14.Value
.Cells(Lig, 7).Value = TextBox15.Value
.Cells(Lig, 8).Value = TextBox16.Value
.Cells(Lig, 9).Value = TextBox17.Value
.Cells(Lig, 10).Value = TextBox18.Value
Me.CommandButton3.Enabled = False
End With
End Sub |
Partager