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!!
 

Some videos you may like

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,218
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.:)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,556
Messages
5,596,820
Members
414,104
Latest member
imamalidadashzada

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