1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| Private Sub Btn_Modif_Outil_Click()
Dim c As Range
If Me.TextBox1 = "" Then MsgBox "Aucun outil sélectionné!": Exit Sub
'
RowSource = Me.ListBox1.RowSource
Me.ListBox1.RowSource = ""
' F.Cells(c.Row, 1) = Me.TextBox1.Value 'No Outil
F.Cells(c.Row, 2) = Me.TextBox2.Value ''site
F.Cells(c.Row, 3) = Me.TextBox3.Value 'p
F.Cells(c.Row, 4).Value = Me.TextBox4.Value ' xxxxxx
F.Cells(c.Row, 5).Value = Me.TextBox5.Value 'marque
F.Cells(c.Row, 6).Value = Me.TextBox6.Value 'no serie
F.Cells(c.Row, 7).Value = CInt(Me.TextBox7.Value) 't
F.Cells(c.Row, 8).Value = CInt(Me.TextBox8) 'i
F.Cells(c.Row, 9).Value = CInt(Me.TextBox9) 'année de fabrication
F.Cells(c.Row, 10).Value = CInt(Me.TextBox10) 'année mise en service
F.Cells(c.Row, 11).Value = Me.TextBox11.Value 'code
F.Cells(c.Row, 12).Value = Me.TextBox12.Value 'observation
F.Cells(c.Row, 13).Value = Me.TextBox13.Value 'etat outil
Me.ListBox1.RowSource = RowSource
MsgBox "Correction terminée!", vbInformation
End Sub |
Partager