Is it possible to extract a value from the listbox? I have a listbox that populates automatically from a table on an excel sheet. It has 7 columns and the number of rows varies in length. I was wondering if I select a row from the listbox is it possible to extrapolate the value that resides in the first column of that row and assign it to a variable?
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]apple
[/TD]
[TD]red
[/TD]
[TD]round
[/TD]
[TD]asdf
[/TD]
[TD]asdf
[/TD]
[TD]sdff
[/TD]
[TD]1234
[/TD]
[/TR]
[TR]
[TD]pear
[/TD]
[TD]green
[/TD]
[TD]round
[/TD]
[TD]asdf
[/TD]
[TD]zxcv
[/TD]
[TD]jhkl
[/TD]
[TD]6543
[/TD]
[/TR]
[TR]
[TD]banana
[/TD]
[TD]yellow
[/TD]
[TD]oblong[/TD]
[TD]qwerqw
[/TD]
[TD]wer
[/TD]
[TD]fgdsd
[/TD]
[TD]0987
[/TD]
[/TR]
[TR]
[TD]kiwi
[/TD]
[TD]green
[/TD]
[TD]oval
[/TD]
[TD]qwerx
[/TD]
[TD]jh;ol
[/TD]
[TD]nm,.
[/TD]
[TD]8394
[/TD]
[/TR]
[TR]
[TD]orange
[/TD]
[TD]orange
[/TD]
[TD]round
[/TD]
[TD]aswef
[/TD]
[TD]nm.
[/TD]
[TD]nm.
[/TD]
[TD]2048
[/TD]
[/TR]
</tbody>[/TABLE]
Say the above table represents my listbox, I'd like to select the row with "1234" and have "apple" be assigned to a variable. Thanks in advance for any/all help, you're time is much appreciated.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]apple
[/TD]
[TD]red
[/TD]
[TD]round
[/TD]
[TD]asdf
[/TD]
[TD]asdf
[/TD]
[TD]sdff
[/TD]
[TD]1234
[/TD]
[/TR]
[TR]
[TD]pear
[/TD]
[TD]green
[/TD]
[TD]round
[/TD]
[TD]asdf
[/TD]
[TD]zxcv
[/TD]
[TD]jhkl
[/TD]
[TD]6543
[/TD]
[/TR]
[TR]
[TD]banana
[/TD]
[TD]yellow
[/TD]
[TD]oblong[/TD]
[TD]qwerqw
[/TD]
[TD]wer
[/TD]
[TD]fgdsd
[/TD]
[TD]0987
[/TD]
[/TR]
[TR]
[TD]kiwi
[/TD]
[TD]green
[/TD]
[TD]oval
[/TD]
[TD]qwerx
[/TD]
[TD]jh;ol
[/TD]
[TD]nm,.
[/TD]
[TD]8394
[/TD]
[/TR]
[TR]
[TD]orange
[/TD]
[TD]orange
[/TD]
[TD]round
[/TD]
[TD]aswef
[/TD]
[TD]nm.
[/TD]
[TD]nm.
[/TD]
[TD]2048
[/TD]
[/TR]
</tbody>[/TABLE]
Say the above table represents my listbox, I'd like to select the row with "1234" and have "apple" be assigned to a variable. Thanks in advance for any/all help, you're time is much appreciated.