UserForm Adding TextBox Values

James_Latimer

Active Member
Joined
Jan 20, 2009
Messages
415
Excel 2007
Hello, i was wondering if someone would be able to help me out please....

I have a userform with totals on it that have been formatted to Currency.

I have another textbox at the bottom for Grand Total. I need to add the values within each total box above but am finding it difficult to do so.

I used tb_Grand = o_Tot1 + o_Tot2 but this concatenates the two values together rather than adding them (ie £250.00£400.00 rather thatn £650.00)

I'm abviously being stupid but i have tried formatting allsorts but i cant seem to get the grand total to behave how i need it to.

Many thanks to anyone who can assist and i apologise in advance if this is a ridiculous question!!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,343
Office Version
  1. 365
Platform
  1. Windows
James

You could use Val, eg Val(o_Tot1.Text), but that probably isn't going to work if you have formatted as currency.

You could remove the £, eg Val(Mid(o_Tot1.Text,2)) or not format as currency.:)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,517
Messages
5,832,217
Members
430,116
Latest member
d1pakjha

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
Top