AW: Textdatei konverieren
NE
Hi Thomas,
willst Du sowas?
Geht aber leider nur bis 10, keine bessre Idee jetz erstmal,
vielleicht kanns noch einer anpassen.
Desweiteren sollten die Zahlen wirklich immer fortlaufend sein,
also nicht etwa
1000
1000
1001
1005 ... oder so ;-)
lg Nancy
--
Sub test()
Dim ff As Integer
Dim zeile As String
Dim y&, b&
Dim arrZeile As Variant
ff = FreeFile
Open "c:\dummy\block\1.txt" For Input As #ff
y = 1: b = 0
While EOF(ff) = False And b = y - 1
Line Input #ff, zeile
arrZeile = Split(zeile, ",")
b = Right(arrZeile(0), 1) 'geht nur bis 10
'b = Val(Right(arrZeile(0), 2)) 'LF9: Index außerhalb des gültigen Bereichs
If b <> y - 1 Then y = y + 1
With Sheets("Tabelle1")
.Cells(y, 1) = arrZeile(0)
.Cells(y, 2) = Cells(y, 2) & Chr(10) & arrZeile(1)
End With
Wend
Close #ff
End Sub
lg Nancy