Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 385
Default Bound Combo box in userform

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
--
Though daily learning, I LOVE EXCEL!
Jennifer
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Bound Combo box in userform

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 385
Default Bound Combo box in userform

You got it! Thank you!
--
Though daily learning, I LOVE EXCEL!
Jennifer


"Ivan Raiminius" wrote:

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform combo box Andy the yeti Excel Programming 21 October 6th 09 04:11 PM
UserForm and combo box to another sheet Nigel Excel Discussion (Misc queries) 0 April 29th 05 09:41 AM
problem with populating a combo box on a userform JulieD Excel Programming 0 September 7th 04 03:42 PM
Cell Bound Combo Box Adrian Soper Excel Programming 1 June 7th 04 01:59 PM
Combo Box in userform Andy Excel Programming 0 November 18th 03 07:31 PM


All times are GMT +1. The time now is 02:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"