Private Sub ComboBox4_Change()
Dim Lig
[COLOR=red]Dim v As Double[/COLOR]
If ComboBox4.ListIndex = -1 Then Exit Sub
TextBox14 = ComboBox4.List(ComboBox4.ListIndex, 2)
Lig = ComboBox4.List(ComboBox4.ListIndex, 2)
TextBox15 = Feuil2.Cells(Lig + 1, "C")
TextBox16 = Feuil2.Cells(Lig + 1, "G") [COLOR=red]= Int(CDec(24 * v)) & ":" & Format(Minute(v), "00")[/COLOR]
End Sub
Private Sub TextBox13_Change()
Dim c, firstAddress
ComboBox4.Clear
TextBox14 = ""
If TextBox13 = "" Then Exit Sub
With Feuil2.Range("I2:I" & Range("I65000").End(xlUp).Row)
Set c = .Find(TextBox13, LookIn:=xlValues, lookat:=xlPart)
If Not c Is Nothing Then
firstAddress = c.Address
Do
ComboBox4.AddItem c.Value
ComboBox4.List(ComboBox4.ListCount - 1, 1) = c.Offset(, -4)
ComboBox4.List(ComboBox4.ListCount - 1, 2) = c.Row - 1 'Pour récupérer le N° de ligne
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
End If
End With
End Sub