Inserting elements in a ListView
In this section, you can see how to change the getAdd() stub with code that let you insert a bulk of elements into a ListView.
Description
Inserting elements
Private Sub Form_Load()
Dim ss(6) As String
ss(1) = "this"
ss(2) = "is"
ss(3) = "a"
ss(4) = "sample"
ss(5) = "of"
ss(6) = "code"
Dim lv As ListItem
k = 1
Do While k < 7
Set lv = Me.ListView1.ListItems.Add
lv.Text = ss(k)
k = k + 1
Loop
End SubLast updated
Was this helpful?