Ok je vais dire exactement.
Alors toujours comme avant finalement.
Ma combobox1 liste ma colonne C. Ma combobox2 liste ma colonne T en fonction du choix de la combobox1.
La textbox1 affiche la valeur de la colonne Z de la même ligne selectionnée par la combobox2.
Private Sub ComboBox1_Change()
ComboBox2.Clear
For n = 5 To Range("C65536").End(xlUp).Row
If Range("C" & n) = ComboBox1 Then
If Range("T" & n) <> "" Then
a = n
While IsEmpty(Range("T" & a)) = False And (Range("C" & a) = ComboBox1 Or Range("C" & a) = "")
a = a + 1
Me.ComboBox2.AddItem (Range("T" & a - 1))
Wend
End If
End If
Next
End Sub
Private Sub ComboBox2_Change()
For n = 5 To Range("T65536").End(xlUp).Row
If Range("T" & n) = ComboBox2 Then
Me.TextBox1.Value = Range("Z" & n)
End If
Next
End Sub
C'est la partie combobox2_change() qui va pas, j arrive pas à afficher la valuer correspondant a la ligne selectionné par la combobox2