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)
 
Top