Hi!
Am having a similar issue as described in this post.
My code is as follows:
However, I get strange results. For example, if I input 1.5 in the first textbox and expect to see it as 1.50 after clicking calculate button, I see instead 15.00. However, if i write 2 it display correctly as 2,00.
Can you please help me?
Thanks!
Am having a similar issue as described in this post.
My code is as follows:
VBA Code:
Private Sub cmdCalculate_Click()
If IsNumeric(Me.txt_odds.value) Then
Me.txt_odds = Format(txt_odds.value, "0" & Application.DecimalSeparator & "00")
End If
Me.txt_Minimum = Format(100 / txt_odds.value, "0" & Application.DecimalSeparator & "00%")
End Sub
However, I get strange results. For example, if I input 1.5 in the first textbox and expect to see it as 1.50 after clicking calculate button, I see instead 15.00. However, if i write 2 it display correctly as 2,00.
Can you please help me?
Thanks!