Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
peterm
 
Posts: n/a
Default 2 column drop down lists

Hi Jeff
If you want eg Column 1 NY column 2 New York use a vlookup.
If this is want you want let me know & I will send it.
Peterm

"Jeff" wrote:

I know that I have seen this before, but I can't recall
how to do it. I want to create a drop down list with 2
columns. e.g. column 1 would be state short forms and
column 2 would be the full name.

Any suggestions would be greatly appreciated.

Jeff

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Use a combobox from the controls toolbox, set the data up in a table and set
the ListFillRange property of the combo to that table, and set the
columncount property to 2.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"peterm" wrote in message
...
Hi Jeff
If you want eg Column 1 NY column 2 New York use a vlookup.
If this is want you want let me know & I will send it.
Peterm

"Jeff" wrote:

I know that I have seen this before, but I can't recall
how to do it. I want to create a drop down list with 2
columns. e.g. column 1 would be state short forms and
column 2 would be the full name.

Any suggestions would be greatly appreciated.

Jeff



  #3   Report Post  
Jim May
 
Posts: n/a
Default

Bob:
experimenting with this I also had to change "Bound Column" to 2.
I suppose that only one of the 2 columns in the FillListRange can be
pasted in...
Also, don't suppose that one could (/??? - however ??) have Linked Cell
advance by 1 - Originally set to say B1 and with each select/paste
the data move downward B2, B3, B4 etc,,,
TIA,
Jim

"Bob Phillips" wrote in message
...
Use a combobox from the controls toolbox, set the data up in a table and

set
the ListFillRange property of the combo to that table, and set the
columncount property to 2.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"peterm" wrote in message
...
Hi Jeff
If you want eg Column 1 NY column 2 New York use a vlookup.
If this is want you want let me know & I will send it.
Peterm

"Jeff" wrote:

I know that I have seen this before, but I can't recall
how to do it. I want to create a drop down list with 2
columns. e.g. column 1 would be state short forms and
column 2 would be the full name.

Any suggestions would be greatly appreciated.

Jeff





  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Hi Jim,

The boundcolumn property identifies which column is selected when the
combobox is clicked. So if you want column 1 value, you don't need to set
that property as that is the default. If you want the second, set it to 2,
etc. If you set the BoundColumn value greater than the ColumnCount value,
you get #N/A.

If you want to pick up multiple columns from the combobox, you will need to
manage it within the click event, it only links back to 1 even if you
specify multiples.

There is nothing to automatically do the second part, but you could drive it
yourself in the click event of the combobox (remember this is a control
toolbox combobox) with code like this

Private Sub ComboBox1_Click()
Dim target As String

With Me.ComboBox1
target = .LinkedCell
.LinkedCell = Me.Range(target).Offset(1, 0).Address
End With
End Sub


Regards

Bob

"Jim May" wrote in message
news:6IlQd.63794$jn.51653@lakeread06...
Bob:
experimenting with this I also had to change "Bound Column" to 2.
I suppose that only one of the 2 columns in the FillListRange can be
pasted in...
Also, don't suppose that one could (/??? - however ??) have Linked Cell
advance by 1 - Originally set to say B1 and with each select/paste
the data move downward B2, B3, B4 etc,,,
TIA,
Jim

"Bob Phillips" wrote in message
...
Use a combobox from the controls toolbox, set the data up in a table and

set
the ListFillRange property of the combo to that table, and set the
columncount property to 2.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"peterm" wrote in message
...
Hi Jeff
If you want eg Column 1 NY column 2 New York use a vlookup.
If this is want you want let me know & I will send it.
Peterm

"Jeff" wrote:

I know that I have seen this before, but I can't recall
how to do it. I want to create a drop down list with 2
columns. e.g. column 1 would be state short forms and
column 2 would be the full name.

Any suggestions would be greatly appreciated.

Jeff







  #5   Report Post  
Jim May
 
Posts: n/a
Default

Thanks Bob for the code - I've printed it out so as to review
it between stop-lights (as I now leave for work).
Jim

"Bob Phillips" wrote in message
...
Hi Jim,

The boundcolumn property identifies which column is selected when the
combobox is clicked. So if you want column 1 value, you don't need to set
that property as that is the default. If you want the second, set it to 2,
etc. If you set the BoundColumn value greater than the ColumnCount value,
you get #N/A.

If you want to pick up multiple columns from the combobox, you will need

to
manage it within the click event, it only links back to 1 even if you
specify multiples.

There is nothing to automatically do the second part, but you could drive

it
yourself in the click event of the combobox (remember this is a control
toolbox combobox) with code like this

Private Sub ComboBox1_Click()
Dim target As String

With Me.ComboBox1
target = .LinkedCell
.LinkedCell = Me.Range(target).Offset(1, 0).Address
End With
End Sub


Regards

Bob

"Jim May" wrote in message
news:6IlQd.63794$jn.51653@lakeread06...
Bob:
experimenting with this I also had to change "Bound Column" to 2.
I suppose that only one of the 2 columns in the FillListRange can be
pasted in...
Also, don't suppose that one could (/??? - however ??) have Linked Cell
advance by 1 - Originally set to say B1 and with each select/paste
the data move downward B2, B3, B4 etc,,,
TIA,
Jim

"Bob Phillips" wrote in message
...
Use a combobox from the controls toolbox, set the data up in a table

and
set
the ListFillRange property of the combo to that table, and set the
columncount property to 2.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"peterm" wrote in message
...
Hi Jeff
If you want eg Column 1 NY column 2 New York use a vlookup.
If this is want you want let me know & I will send it.
Peterm

"Jeff" wrote:

I know that I have seen this before, but I can't recall
how to do it. I want to create a drop down list with 2
columns. e.g. column 1 would be state short forms and
column 2 would be the full name.

Any suggestions would be greatly appreciated.

Jeff











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
How do I sort by row instead of by column? PercivalMound Excel Worksheet Functions 7 August 28th 06 10:41 PM
Change font size in drop down validation lists Big Daddy Excel Discussion (Misc queries) 2 February 3rd 05 05:22 PM
How do I create a column that has a 'drop box' Dave Simons Excel Worksheet Functions 1 November 1st 04 01:57 PM
How do I change the appearance of my drop down lists? Tom Tanner Excel Worksheet Functions 1 October 28th 04 04:03 PM
How do I create a column that has a 'drop box' Dave Simons Excel Worksheet Functions 1 October 27th 04 07:57 PM


All times are GMT +1. The time now is 12:43 PM.

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"