Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Combo Box - Can I Concatenate the list?

Does anyone know how to concatenate two listrow cells into
one in a combo box?

For example, I want to have "Smith, John" show up in the
combo box from two cloumns, A1 = Smith and B1 = John

Any suggestions would be greatly appreciated!

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Combo Box - Can I Concatenate the list?

For example, I want to have "Smith, John" show up in the
combo box from two cloumns, A1 = Smith and B1 = John


Private Sub UserForm_Activate()
Dim ws As Worksheet
Set ws = Sheets("Sheet1")
For iRow = 1 To 2
ComboBox1.AddItem ws.Cells(iRow, 1) & ", " & ws.Cells(iRow, 2)
Next iRow
End Sub

HTH,
Merjet


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Combo Box - Can I Concatenate the list?

Thank you, Merjet ~

I will give it a shot.

K
-----Original Message-----
For example, I want to have "Smith, John" show up in the
combo box from two cloumns, A1 = Smith and B1 = John


Private Sub UserForm_Activate()
Dim ws As Worksheet
Set ws = Sheets("Sheet1")
For iRow = 1 To 2
ComboBox1.AddItem ws.Cells(iRow, 1) & ", " &

ws.Cells(iRow, 2)
Next iRow
End Sub

HTH,
Merjet


.

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
List Box or Combo Box Finneous J Whoopee Excel Discussion (Misc queries) 0 March 5th 08 06:15 PM
Combo box list help Michelle Excel Discussion (Misc queries) 2 January 10th 08 09:26 PM
Combo Box List aftamath Excel Discussion (Misc queries) 2 October 5th 05 08:39 PM
Concatenate a list Chris Excel Programming 2 September 17th 03 08:22 PM
Combo Box Value List Todd[_7_] Excel Programming 1 September 17th 03 02:49 AM


All times are GMT +1. The time now is 02:08 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"