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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| Private Sub TextBox16_Change()
Sheets(ComboBox4.Text).Select
If ComboBox4 = "" Then GoTo fin1
For Each c In Sheets(ComboBox4.Text).Range("b:b")
If c.Value = Label95 Then
c.Select
Exit For
End If
Next c
' on vide les éléments
TextBox2 = ""
ComboBox3 = ""
ComboBox2 = ""
ComboBox5 = ""
TextBox11 = ""
ComboBox1 = ""
TextBox6 = ""
TextBox5 = ""
' inscription
ActiveCell.Offset(0, -1).Select
Label94 = ActiveCell.Value
ActiveCell.Offset(0, 1).Select
Label95 = ActiveCell.Value
ActiveCell.Offset(0, 1).Select
TextBox2 = ActiveCell.Value
ActiveCell.Offset(0, 1).Select
'ComboBox4 = ActiveCell.Value
ActiveCell.Offset(0, 1).Select
ComboBox3 = ActiveCell.Value
ActiveCell.Offset(0, 1).Select
ComboBox2 = ActiveCell.Value
ActiveCell.Offset(0, 1).Select
ComboBox5 = ActiveCell.Value
ActiveCell.Offset(0, 1).Select
TextBox11 = ActiveCell.Value
ActiveCell.Offset(0, 1).Select
ComboBox1 = ActiveCell.Value
ActiveCell.Offset(0, 1).Select
fin1: |
Partager