Hello all,
The following code populates a range with values from a listbox.
The listbox length is variable.
lets say that the listbox contains for example 25 items.
The code will fill the range with 25 items.
How can I keep the loop until it fills the range with for eample 200 items.
![]()
Private Sub CommandButton1_Click() For n = 1 To ListBox1.ListCount Sheets("ROSTERS").Cells(7, n + 6).Value = ListBox1.List(n - 1) Next n End Sub
Bookmarks