1 Attachment(s)
Excel VBA Multiple Selection Listbox
I'm using the Form Control List Box via the Developer Tab and I'm trying to figure out a code to take my selections (multiple selection list box) and display them in a single cell with the selections separated by a comma.
When I right click the list box and navigate to the "Format Control" option, I get the option to make the list box a multi-select list box. Attachment 120729
However the selections default to "0" and I cannot figure out how to get the selections to display into cell G9 as follows:
"SelectionItem1, SelectionItem2, SelectionItem5, SelectionItem7..." [based on selections; into a single cell]
Re: Excel VBA Multiple Selection Listbox
as far as i am aware, you would need to use an activex listbox
a forms listbox in multiselect mode is only useful for visual return
Re: Excel VBA Multiple Selection Listbox
What would the use of a "visual return" offer? I know I can create a userform and code it accorndingly, but there has to be a way to do this with the listbox; the information has to go somewhere.
Why does the reference cell default to "0" when multiple is selected? is the zero useful somehow?
Re: Excel VBA Multiple Selection Listbox
Quote:
I know I can create a userform
why can you not put an activex listbox on you worksheet?
Quote:
Why does the reference cell default to "0" when multiple is selected? is the zero useful somehow?
no, the normal return to the linked cell is the index of the selected list item, the way it works can only be with a single returned value, not multi select