Hello,
Let's say you create a listbox and populate it with values. Is there a way to get the value of a specific listbox item?
So let's say i want to get the value of the item that is in the 3rd position in the listbox, can i do that?
Thank you.
Hello,
Let's say you create a listbox and populate it with values. Is there a way to get the value of a specific listbox item?
So let's say i want to get the value of the item that is in the 3rd position in the listbox, can i do that?
Thank you.
What kind of list box, user form, ActiveX or Forms menu?
For a list box from the forms menu, it would be
Please Login or Register to view this content.
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
Normally you use the item that's been selected, but this will put the value of the third item (as long as there is one) from a list box called ListBox1 on an userform into a message box so you adapt it as you need:
Note the the number is actually one less than the required number as the first list box index number is zero.Please Login or Register to view this content.
Regards,
Robert
____________________________________________
Please ensure you mark your thread as Solved once it is. Click here to see how
If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post
thaks Trebor, works like a charm.
You're welcome. If you could mark the thread as solved it would be appreciated.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks