Ich wollte Werte in meinem uf von einer listbox in die andere übertragen.
Was passt an meinem Code nicht?
For t = 0 To ListBox1.ListCount
If ListBox1.Selected(t) = True Then
For z = 0 To r
If ListBox2.List(z) = ListBox1.List(t) Then
GoTo 3
End If
Next z
ListBox2.List(r) = ListBox1.List(t)
r = r + 1
End If
3
Next t
Besten Dank für jede Hilfe :)