ListBox füllen
09.02.2004 13:28:49
Beni
wenn ich mit dem nachfolgenden Code eine ListBox fülle, so kommt ab Spalte11 der Laufzeitfehler "380"
Eigenschaft List konnte nicht gesetzt werden. Ungültiger Eigenschaftswert.
Woran liegt das und wie kann man das umgehen.
Gruss Beni
ListBox1.ColumnCount = 16
i = 0
ListBox1.AddItem Cells(r, 1)
ListBox1.List(i, 1) = Cells(r, 2)
ListBox1.List(i, 2) = Cells(r, 3)
ListBox1.List(i, 3) = Cells(r, 4)
ListBox1.List(i, 4) = Cells(r, 5)
ListBox1.List(i, 5) = Cells(r, 6)
ListBox1.List(i, 6) = Cells(r, 7)
ListBox1.List(i, 7) = Cells(r, 8)
ListBox1.List(i, 8) = Cells(r, 9)
ListBox1.List(i, 9) = Cells(r, 10)
ListBox1.List(i, 10) = Cells(r, 11)<<<<<<
istBox1.List(i, 12) = Cells(r, 13)
ListBox1.List(i, 13) = Cells(r, 14)
ListBox1.List(i, 14) = Cells(r, 15)
ListBox1.List(i, 15) = Cells(r, 16)