Hello VBForums
Hello every one
Please ..how to change the part that makes me the error in this code for rounded result to the Lower Ten in Text6 .. :
For example :
Text6.Text = Text1.Text - (Text2.Text + Text3.Text + Text4.Text + Text5.Text)
87588.05 = 97816.10 - ( 05.50 + 1146.60 + 300 + 8775.95)
(87588.05) appears in Text6 as ( 87580 )
Thank you in advance for help me
Sincerely
MADA BLACK
![Name: 3.png
Views: 57
Size: 15.6 KB]()
Hello every one
Please ..how to change the part that makes me the error in this code for rounded result to the Lower Ten in Text6 .. :
Code:
Private Sub Text5_Change()
Set f = WorksheetFunction
Me.Text6.Text = f.RoundDown(((Val(Replace(Me.Text1, ",", ".")) - (Val(Replace(Me.Text2, ",", ".")) + Val(Replace(Me.Text3, ",", ".")) + Val(Replace(Me.Text4, ",", ".")) + Val(Replace(Me.Text5, ",", ".")))) / 10) * 10, -1)
End Sub
Text6.Text = Text1.Text - (Text2.Text + Text3.Text + Text4.Text + Text5.Text)
87588.05 = 97816.10 - ( 05.50 + 1146.60 + 300 + 8775.95)
(87588.05) appears in Text6 as ( 87580 )
Thank you in advance for help me
Sincerely
MADA BLACK