Bound Combo box in userform

G

Guest

Hello Hello,
I have a userform with a bound combo box, I have it set as so . . .
BoundColumn: 2
ColumnCount:1
I would like the value in the first column to be placed on Sheet1 and the
value in the second column placed in Sheet2. I am not having any problems
with Sheet1 its getting the second value to the second page without having
the user reselect the data. Ideas?

Also, i am using xl2000 and when i try to use vlookup or lookup for that
matter in vba it says its not supported. Any way around that or am i stuck.
Thanks for the help. Jennifer
 
I

Ivan Raiminius

Hi Jennifer,

I am not sure that I fully understood your scenario, so this is just
guess what you need:

value=combobox1.list(combobox1.listindex,1)

value is from second column (first column is 0), from selected row. If
nothing is selected (listindex = -1), you will get an error (so you
must check first if something is selected (listindex<>-1)).

Please let me know if you need more help.

Regards,
Ivan
 

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

Top