Adding list box text together

lazyperson17

New Member
Joined
Jul 24, 2009
Messages
33
Hello,

I have tried numerous ways of getting this to work, but i only have a limited knowledge base with which to work with. I have created a 3 column listbox and figured out all but one function. What i am trying to do is this:

Code:
Dim items
items = UserForm1.ItemList.Column(0, 0)
items2 = UserForm1.ItemList.Column(1,0)

Range("B1").Select
[COLOR=Red]ActiveCell = items + items2[/COLOR]


Range("C1") = UserForm1.ItemList.Value
Range("A1").Select

Range("A2").Select

SelectedItem.Show
The red portion is where i keep running into a problem. I have the listbox text seperated for easier use of the user, but i need the individual column text to be in one cell on the spread sheet. So what i need to do is somehow place the text gathered from Column(0,0) and add it to Column(1,0).

To sum everything up, is there a way to combine 2 or more sources of text and have it appear together in one location(cell in this case).

Thanks,

Trey
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Thank you for the reply, i finally found the solution after some more trial and error. Alll i needed to do was include a "&" sign in the middle and it fixed the problem.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top