Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiselect listbox

Status
Not open for further replies.

vlad123

Programmer
Jun 22, 2005
37
DE
I have a listbox with columncount = 2, boundcolumn = 1 and Multiselect = extended.
I need to use the values selected in this list from the second column. For ex, if the user select

World Markets;
AND

Intraday;
I need in a variable just these 2 urls, so the values from the second column of the list.
I have this code, but, I can have just the first column, in this ex. just "World Markets" and "Intraday":

For i = 0 To Me.lstLinks.ItemsSelected.Count - 1
j = Me.lstLinks.ItemsSelected.Item(i)
MsgBox Me.lstLinks.ItemData(j)
Next i
 
Change MsgBox Me.lstLinks.ItemData(j)
to
MsgBox Me.LstLinks.Column(1, j)
 
Hello,

who can and will help me.

I need two values from a listbox.
The listbox contents three rows.
first is text, second a number, third a number
the second will store in a cell, the third is a index number. I need the second and third.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top