Danke i.o. aber Textbox2 Eingabe...
walli
Hallo Franz,
habe mal rumgestöbert u. das gefunden.
Wenn ich jetzt in der Textbox2 ein Baumuster eingebe, werden alle
Baumuster aufgelistet, die entsprechend mit der Ziffer anfangen.
Wenn ich jetzt z.b. 2 eingebe kommen alle mit Baumuster 204...
das ist soweit GUT aber ich brauch davor noch den Typ also Spalte "B"
krieg das nicht hin.
Ich hoffe Du kannst helfen,
herzlichst walli.
Dim arr() As Variant
Dim index As Long, iCount As Long
Dim B As Long
B = IIf(IsEmpty(Range("B65536")), Range("B65536").End(xlUp).Row, 65536)
X = IIf(IsEmpty(Range("C65536")), Range("C65536").End(xlUp).Row, 65536)
If TextBox2.Value = "" Then
ListBox1.RowSource = "B4:B" & X
Exit Sub
End If
ListBox1.RowSource = ""
ListBox1.Clear '!!! hiermit geleert
For index = 4 To X
If LCase(Left(Cells(index, 3), Len(TextBox2))) = LCase(TextBox2) Then
If Sheets("Baumuster").Cells(index, 3) <> "" Then
On Error Resume Next
ReDim Preserve arr(0, 0 To iCount)
arr(0, iCount) = Cells(index, 3)
iCount = iCount + 1
ListBox1.Column = arr
End If
End If
Next