I have a listbox with multiselect options. I populate it using the addItem function.
I can’t find any article about this on Google, but I need to distinguish from the text displayed in the listbox and a real value.
For example:
shown hiddenvalue
-------- -----------
monday A1
tuesday A2
wednesday C7
etc.
Is it possible? How can I access these values?
For VBA listbox you want to:
ColumnCount = 2).ColumnWidths = ";0".BoundColumn = 2) and the first column as textual (TextColumn = 1).Have a procedure to add values:
Now, for single-select listbox, you can use
.Valueor.Textto find out selected value/text.For multi-select listbox, you can use
.List(i, 0)for text and.List(i, 1)for value, whereiin an index of a row.