Referencing unselcted items in listbox

M

Mark A. Sam

Hello,

I need to iterate through a multiselct list box where nothing is selected
and address each item. Is that possible?

God Bless,

Mark A. Sam
 
D

Douglas J. Steele

What exactly do you want? Simply to list each value?

Dim intLoop As Integer

For intLoop = 0 To (Me.List0.ListCount - 1)
Debug.Print Me.List0.Column(1, intLoop)
Next intLoop

(where 1 in this case means that I'm looking at the 2nd column in the
listbox)
 
M

Mark A. Sam

Thanks Doug, Thats what I needed.

Douglas J. Steele said:
What exactly do you want? Simply to list each value?

Dim intLoop As Integer

For intLoop = 0 To (Me.List0.ListCount - 1)
Debug.Print Me.List0.Column(1, intLoop)
Next intLoop

(where 1 in this case means that I'm looking at the 2nd column in the
listbox)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top