Bonjour
Je rencontre un problème sur mon projet excel si quelqu'un pourrai corriger mon code car je n'arrive pas faire ce que je veux.
ce que je voudrais c'est que en fonction de ce que je sélectionne dans ma combobox3 cela m'affiche dans ma listbox1 les donner des colonnes "F" "G" "H" "I" "J"
Private Sub ComboBox3_Change()
Dim J As Long
Me.ListBox1.Clear
If Me.ComboBox3.ListIndex = -1 Then Exit Sub
With Sheets("Feuil1")
Set Cel = .Columns("E").Find(what:=Me.ListBox1, LookIn:=xlValues, lookat:=xlWhole)
If Not Cel Is Nothing Then
For J = Cel.Row To Cel.Offset(1, 0).Row - 1
If .Columns("G:J" & J) <> "" Then
Me.ComboBox3.AddItem .Columns("G:J" & J)
End If
Next J
End If
End With
End Sub