Text Box help

Exceldc7

New Member
Joined
Mar 14, 2013
Messages
10
I have three text box. I’m looking for a formula to combine all three text box into text box number 4? Please help. I’ve not been able to come up with any kind of solution
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Are you wanting to add up all the values Like Result = 245

Or combine the Text Like JaneBobCharlie
 
Upvote 0
Try one of these:

Code:
Private Sub CommandButton1_Click()
'Sum values
'Modified  1/12/2019  12:51:21 AM  EST
TextBox4.Text = Val(TextBox1.Text) + Val(TextBox2.Text) + Val(TextBox3.Text)
End Sub
Private Sub CommandButton2_Click()
'Combine Values
'Modified  1/12/2019  12:51:21 AM  EST
TextBox4.Value = TextBox1.Value + TextBox2.Value + TextBox3.Value
End Sub
 
Upvote 0
How about
Code:
Me.TextBox4.Value = join(Array(Me.TextBox1, Me.TextBox22, Me.TextBox3), ", ")
Change the comma space at the end to what ever you want as the delimiter.
 
Upvote 0
How about
Code:
Me.TextBox4.Value = join(Array(Me.TextBox1, Me.TextBox22, Me.TextBox3), ", ")
Change the comma space at the end to what ever you want as the delimiter.

thanks everyone for the help

Do i put this in as code or a formula?
 
Upvote 0
It's code that needs to go in the userform module, maybe on a command button as shown by MAIT, or under a textbox exit event on textbox3
 
Upvote 0

Forum statistics

Threads
1,215,561
Messages
6,125,542
Members
449,236
Latest member
Afua

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