Private Sub recherchemot()
Dim firstAddress As String
Dim ad As String
Dim cel As Range
Dim ligne1 As Long
Dim ligne2 As Long
ad = "a2:" & Sheets("rue").Cells.SpecialCells(xlCellTypeLastCell).Address(0, 0) ' on recherche dans l'ensemble de la feuille
With Sheets("rue").Range(ad)
Set cel = .Find(ComboBox1.Value, LookIn:=xlValues, SearchOrder:=xlByRows) ' on recherche ligne par ligne
If Not cel Is Nothing Then
firstAddress = cel.Address
Do
ligne2 = cel.Row 'ligne2 peut être supprimé si la recherche se fait
' uniquement dans une colonne et non dans une plage
If ligne2 <> ligne1 Then ' on vérifie que la valeur n'a pas été trouvé sur la ligne
' remplir la listbox ou combobox ou Listview
dl1 = Sheets("recherche").Range("A65536").End(xlUp).Row + 1
For i = 1 To 7
Sheets("recherche").Cells(dl1, i) = Sheets("rue").Cells(ligne2, i)
Next i
'
ligne1 = cel.Row ' on mémorise le numéro de la ligne
End If
Set cel = .FindNext(cel) 'cellule suivante
Loop While Not cel Is Nothing And cel.Address <> firstAddress ' si on recommence la recherche alors fin de la recherche
End If
ligne2 = 0
End With
End Sub
Private Sub CommandButton1_Click()
If ComboBox1.Value = "" Then Exit Sub
recherchemot
End Sub