ist es Möglich eine Textdatei auf zwei Listbox aufzuteilen?
https://www.herber.de/bbs/user/158058.txt
Gibt es bei der Textdatei auch Spalten die man definieren kann?
Im Moment lade ich hiermit alles in einer Listbox,
Dim avntValue As Variant 'Textdatei in Listbox1 Dim ialngIndex As Long Dim sFile As String Dim strTemp As String Dim sDatei As String, sData As String Dim iZeile As Long, iSpalte As Integer Dim lz As Long sDatei = Trim$(Replace(Split(tblXML.Range("A1"), " für")(0), "'", "")) sDatei = Environ$("USERPROFILE") & "\Desktop\Songsammlung\" & sDatei & "_DATEN" & ".txt" Open sDatei For Input As #1 With ListBox1 Call .Clear Do Until EOF(1) Line Input #1, strTemp avntValue = Split(strTemp, vbTab) Call .AddItem For ialngIndex = LBound(avntValue) To UBound(avntValue) .List(.ListCount - 1, ialngIndex) = avntValue(ialngIndex) Next Loop End With Close #1
brauche aber die erste Spalte der Textdatei in Listbox 1
und der Rest in Listbox 2
Bin dankbar für alle Tipps.
LG Antonio