Excelvbas01
Gebruiker
- Lid geworden
- 7 apr 2020
- Berichten
- 162
ik gebruik deze code op te zoek. werkt prima. alleen krijg ik een kolom te zien listbox.
is er een mogelijkheid om kolommen toe te voegen?
is er een mogelijkheid om kolommen toe te voegen?
Code:
Private Sub TextBox1_Change()
Dim c, firstaddress
ListBox1.Clear
Dim rRng
With Range("A2:C1000" & Cells(Rows.Count, 3).End(xlUp).Row)
Set c = .Find(TextBox1.Text, LookIn:=xlValues, LookAt:=xlPart)
If Not c Is Nothing Then
firstaddress = c.Address
Do
ListBox1.AddItem c.Text
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstaddress
End If
End With
End Sub