gothc
XLDnaute Occasionnel
VB:
Private Sub ComboBox1_Change()
Dim x&
[COLOR=rgb(247, 218, 100)]x = Application.Match(CLng(ComboBox1.Value), Feuil1.Range("G:G"), 0)[/COLOR]
[A2] = Feuil1.Cells(x, 2)
[B2] = Feuil1.Cells(x, 1)
[E3:G3].Value = Feuil1.Cells(x, 8).Resize(, 3).Value
End Sub
Private Sub Worksheet_Activate()
Dim t, f As Worksheet: Set f = Feuil1
f.Cells(2, "G").Resize(f.Cells(Rows.Count, 1).End(3).Row).Name = "base"
t = [Base].Value
Me.ComboBox1.List = t
End Sub