calculation amounts with currency in textboxes on userform

Abdo

Board Regular
Joined
May 16, 2022
Messages
225
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Hello
I want to add currency before amount for some textboxes manually and some textboxes should show amount with currency
when enter number in textbox1 will add currency as what I did it here
Private Sub TextBox1_AfterUpdate()
Dim CRR As String
CRR = "LYD"
TextBox1.Value = s & Format(TextBox1, "#,##0.00")
End Sub
when fill textbox1,3 will show result in textbox2 as marked in the picture
textbox2= textbox1/textbox3 then should show amount in textbox2 with currency as in this picture as marked
AS1.JPG


when fill textbox4 then
textbox5 = (textbox 1-textbox2)*textbox 4 but I would show minus value in textbox5 with currency as marked in this picture
AS2.JPG

I hope find way to do that.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
normally you dont mix values like that.
cant you just add a box for the currency type in front of the value box?
 
Upvote 0
bad news !😵‍💫
I thought to could do by mix amount with text !🙄
 
Upvote 0

Forum statistics

Threads
1,223,929
Messages
6,175,461
Members
452,645
Latest member
Tante

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