Plusieurs recherche sur une listbox

Fermé
dgeo27 Messages postés 1 Date d'inscription jeudi 31 mars 2016 Statut Membre Dernière intervention 18 janvier 2020 - 18 janv. 2020 à 08:28
cs_Le Pivert Messages postés 7904 Date d'inscription jeudi 13 septembre 2007 Statut Contributeur Dernière intervention 14 août 2024 - 18 janv. 2020 à 09:12
Bonjour,

J'ai actuellement une Listbox qui m'affiche des informations d'articles liée à Textbox1 (pour la recherche de base) pour rechercher uniquement par l'intitulé de l'article.

Private Sub TextBox1_Change()
Dim DerLigne&, Ligne&
ListBox1.Clear
With Worksheets("Tarification")
DerLigne = .Cells(Rows.Count, 2).End(xlUp).Row
For Ligne = DerLigne To 4 Step -1
With .Cells(Ligne, 2)
If .Value <> 0 Then
If InStr(LCase$(.Value), LCase$(TextBox1)) > 0 Then
ListBox1.AddItem ' colonne
ListBox1.List(ListBox1.ListCount - 1, 0) = .Value
ListBox1.List(ListBox1.ListCount - 1, 1) = .Offset(, 1)
' ListBox1.List(ListBox1.ListCount - 1, 2) = .Offset(, 2)

End If
End If
End With
Next Ligne
End With
End Sub


J'aimerais modifier mon code (sans savoir comment ...) pour recherche via plusieurs Textbox...
Textbox1 pour les intitulés
Textbox2 pour les fournisseurs
Textbox3 pour les groupes



merci pour votre aide :)






Configuration: Windows / Chrome 79.0.3945.130

1 réponse

cs_Le Pivert Messages postés 7904 Date d'inscription jeudi 13 septembre 2007 Statut Contributeur Dernière intervention 14 août 2024 729
18 janv. 2020 à 09:12
0