This is how I go about in retrieving the value in the first column of a list box that has column count = 2
I want to retrieve the value in the 2nd column and I tried doing this:Code:For i = 0 To Me.Controls("lstBox").ListCount - 1 debug.print Me.Controls("lstBox").ItemData(i) Next i
but I get an error saying "Wrong number of arguments or invalid property assignment"Code:For i = 0 To Me.Controls("lstBox").ListCount - 1 debug.print Me.Controls("lstBox").ItemData(i,2) Next i