You did not indicate what type of data is going to be stored from the ListBox so I just assumed Text.
Dim y as integer
Dim F(3) as String
'Use this if Numeric
'Dim F(3) as Long
For y = 1 to 3
F = ListBox.ItemData
Next y
Let me know if you need more explaination.
Bob Scriver
This statement you change depending upon the type of data in the ListBox: Dim F(3) as String if the data is text. Dim F(3) as Long if the data is an Numeric Integer.
Bob Scriver
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.