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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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.:)
 
Upvote 0

Forum statistics

Threads
1,214,525
Messages
6,120,051
Members
448,940
Latest member
mdusw

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