Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 336
Default Combobox Row Source

I have a combobox on a userform that has a Row Source of 3 columns and about
200 rows. I can get everything to work but the combobox will only display
the entry from the first column of the source. I would like it to display
the second column.

I have tried changing the Bound Column to 2. In fact, I have changed it to
0, 1, 2, and 3 and the combobox always displays column 1 information.

I can get it to work by shifting the columns around in my source data, but I
would like to avoid that if at all possible.

I am running Excel 2002.

Does anyone have any suggestions?

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default Combobox Row Source


You need to set the TextColumn property to 2
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 389
Default Combobox Row Source

Set the ColumnCount = 2 and ColumnWidths = 0

That will display two columns in the combo, but make the first column zero
points wide, giving the appearance that there is only one column in the
list.

Use BoundColumn to change which column is selected...Combobox1.Value and a
BoundColumn = 2 returns the item from the 2nd column of the selected row.

--
Tim Zych
www.higherdata.com
Compare data in worksheets and find differences with Workbook Compare
A free, powerful, flexible Excel utility


"Martin" wrote in message
...
I have a combobox on a userform that has a Row Source of 3 columns and
about
200 rows. I can get everything to work but the combobox will only display
the entry from the first column of the source. I would like it to display
the second column.

I have tried changing the Bound Column to 2. In fact, I have changed it
to
0, 1, 2, and 3 and the combobox always displays column 1 information.

I can get it to work by shifting the columns around in my source data, but
I
would like to avoid that if at all possible.

I am running Excel 2002.

Does anyone have any suggestions?

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 336
Default Combobox Row Source

That worked. Thanks.


"Smallweed" wrote:


You need to set the TextColumn property to 2

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
ComboBox Row Source across ALL sheets Corey Excel Programming 6 July 8th 06 04:58 AM
ComboBox Row Source across ALL sheets Corey Excel Programming 11 July 4th 06 06:57 AM
Combobox source yohann Excel Programming 1 March 6th 04 02:18 PM
combobox row source scrabree Excel Programming 1 October 15th 03 08:52 PM
Combobox list source Chris Thompson Excel Programming 3 August 26th 03 02:18 AM


All times are GMT +1. The time now is 05:58 AM.

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

About Us

"It's about Microsoft Excel"