to get the second item from the listbox, do it like this
VB Code:
dim SecondVal As String SecondVal = list1.list(1)
to get specific values in a listbox, use the list property and supply the index number of the data you want to retrieve
the index starts with 0 so if the listbox has 5 items, the index would range from 0 to 4
or 0 to list1.ListCount - 1
ListCount returns the total number of items in your listbox




Reply With Quote