Multiple column listbox syntex question

  • Thread starter Thread starter Martha
  • Start date Start date
M

Martha

Hi,

I have a 4 column single selection listbox on a userform.

I have a variable (myvar) that I would like to assign the
value of the selected items 4th column.

ie myvar= listbox1.column(4).value

that doesn't work. I am stumped. Please help.

Thanks a bunch,

Martha
 
Hi Martha,

Here's one way to do it:

MyVar = ListBox1.List(ListBox1.ListIndex, 4)

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *
 
Nicely done Rob

Thanks a bunch,

Martha
-----Original Message-----
Hi Martha,

Here's one way to do it:

MyVar = ListBox1.List(ListBox1.ListIndex, 4)

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *





.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top