Dim ListArray() As String 'in the genereal declerations section of the form...this is above all other code
'Then in the click event add the items
Private Sub Command1_Click()
ReDim ListArray(0) As String 'Create the array
ReDim Preserve ListArray(UBound(ListArray) + 1)'Add a new element to the array
ListArray(UBound(ListArray)) = "First Item" 'fill that new element with a string
ReDim Preserve ListArray(UBound(ListArray) + 1)
ListArray(UBound(ListArray)) = "Second Item"
ReDim Preserve ListArray(UBound(ListArray) + 1)
ListArray(UBound(ListArray)) = "Third Item"
ReDim Preserve ListArray(UBound(ListArray) + 1)
ListArray(UBound(ListArray)) = "Fourth Item"
ReDim Preserve ListArray(UBound(ListArray) + 1)
ListArray(UBound(ListArray)) = "Fith Item"
ReDim Preserve ListArray(UBound(ListArray) + 1)
ListArray(UBound(ListArray)) = "Sixth Item"
For i = 1 To UBound(ListArray) 'loop thru the arrray and add the items to the listbox.
List1.AddItem (ListArray(i))
Next
End Sub