Private Sub SpinButton1_SpinUp()
TextBox1.Value = Val(TextBox2.Value) * Val(TextBox3.Value)
TextBox1 = Format(CDbl(TextBox1), "0." & String(SpinButton1.Value, "0"))
TextBox1 = Replace(TextBox1.Text, ",", ".")
TextBox4 = Val(TextBox1.Value) * 10
TextBox4 = Replace(TextBox4.Text, ",", ".")
End Sub
Private Sub SpinButton1_Spindown()
TextBox1.Value = Val(TextBox2.Value) * Val(TextBox3.Value)
TextBox1 = Format(CDbl(TextBox1), "0." & String(SpinButton1.Value, "0"))
TextBox1 = Replace(TextBox1.Text, ",", ".")
TextBox4 = Val(TextBox1.Value) * 10
TextBox4 = Replace(TextBox4.Text, ",", ".")
End Sub
Private Sub TextBox3_Change()
TextBox1.Value = Val(TextBox2.Value) * Val(TextBox3.Value)
TextBox1 = Replace(TextBox1.Text, ",", ".")
TextBox4 = Val(TextBox1.Value) * 10
TextBox4 = Replace(TextBox4.Text, ",", ".")
End Sub
Private Sub TextBox2_Change()
TextBox1.Value = Val(TextBox2.Value) * Val(TextBox3.Value)
TextBox1 = Replace(TextBox1.Text, ",", ".")
TextBox4 = Val(TextBox1.Value) * 10
TextBox4 = Replace(TextBox4.Text, ",", ".")
End Sub