Hello,
ich komme nicht weiter, ich brauche wieder mal Eure Hilfe :-)
Ich möchte ein Listbox erstellen mit 2 spalten und die leeren zeilen nicht angezeigt wird. Das klappt einfach nicht.
Hier mein Code:
With ListBox1
.ColumnCount = 2
.Clear
.ColumnWidths = "200;80"
End With
Loletzte = IIf(IsEmpty(Cells(Rows.Count, 1)), Cells(Rows.Count, 1).End(xlUp).Row, Rows.Count)
For LoI = 8 To Loletzte
ListBox1.AddItem Cells(LoI, 1)
ListBox1.List(LoI - 8, 1) = Cells(LoI, spalte_Zahl)
Next LoI
2. Frage
Wie kann ich dann, wenn die Leeren Zeilen nicht sichtbar sind
die richtige Zelladresse ermitteln?
Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
'MsgBox ListBox1.List(ListBox1.ListIndex, 0)
ZeileIndex1 = Me.ListBox1.ListIndex
ActiveSheet.Cells(ZeileIndex1, 1).Select
End Sub
Danke
Joana