Hi,
I have a combo box in a user form. I need to populate it with a list of names from my spreadsheet. The names are listed broken in to first and last name. I need them joined together in the combo box and the same on the output from it.
I really can't get my head around arrays at all. Is there a simple way for me to do this?
I'm fine with adding the names together, I just can't figure out how to put them into the combo box
I need something like
I don't want to list the full names on the spreadsheet anywhere if possible. The purpose of it is that I have a whole series of individual sheets in the workbook named with the full names, I intend to use the combo box to go to the selected sheet.
I hope this makes sense. Any ideas?
Thanks
I have a combo box in a user form. I need to populate it with a list of names from my spreadsheet. The names are listed broken in to first and last name. I need them joined together in the combo box and the same on the output from it.
I really can't get my head around arrays at all. Is there a simple way for me to do this?
I'm fine with adding the names together, I just can't figure out how to put them into the combo box
I need something like
Code:
For Row = 2 to LastRow
FirstName = Range("A" & Row)
LastName = Range("B" & Row)
FullName = FirstName & " " & LastName
*FullName in to combo box list*
Next Row
I don't want to list the full names on the spreadsheet anywhere if possible. The purpose of it is that I have a whole series of individual sheets in the workbook named with the full names, I intend to use the combo box to go to the selected sheet.
I hope this makes sense. Any ideas?
Thanks