Hi Guys
I have a userform with 3 textboxes on:
TextBox1 = the user enters gross value
TextBox2 = user enters VAT Rate as a number [not a percentage]
TextBox3 = Calculates the Nett Value
If I use this code:
The calculation works but the formatting fails
Any ideas??
Many thanks
Derek
I have a userform with 3 textboxes on:
TextBox1 = the user enters gross value
TextBox2 = user enters VAT Rate as a number [not a percentage]
TextBox3 = Calculates the Nett Value
If I use this code:
Code:
Private Sub textbox1_Change()
TextBox1.value = Format(TextBox1.value, "Currency")
TextBox3.value = Format(TextBox3.value, "Currency")
TextBox3.value = Val(TextBox1.value) / Val(TextBox2.value + 100) * (100)
End Sub
The calculation works but the formatting fails
Any ideas??
Many thanks
Derek