WERNER SLABBERT
Board Regular
- Joined
- Mar 3, 2009
- Messages
- 107
HEllo Folks, Any Idea how i can loop through an input error with my code here? the user should only use numerical but would it be possible for vba not to error out and just simply clear the textbox and have the user retry input?<br>
<br>
<br>
<br>
<br>
<br>
As Always i do appreciate all you smart people helping this noob...
Also In An unrelated question, hiw can i have this TextBox display "Currency" Correctly after the user has input the ammount.
Eg: R 4851,29 at the moment the input does not "auto Display the decimal if not entered manually Eg: R 4000
PS: The "Currency" Format does not work.
<br>
Code:
<br>
Private Sub TextBox200_AfterUpdate()<br>
DoUpdate200<br>
End Sub<br>
<br>
Code:
<br>
Sub DoUpdate200()<br>
If TextBox200.Value = "" Then TextBox200.Value = 0<br>
Sum1.Value = TextBox200.Value * 200<br>
Sum1.Value = Format(Sum1.Value, "Currency")<br>
End Sub<br>
<br>
As Always i do appreciate all you smart people helping this noob...
Also In An unrelated question, hiw can i have this TextBox display "Currency" Correctly after the user has input the ammount.
Eg: R 4851,29 at the moment the input does not "auto Display the decimal if not entered manually Eg: R 4000
Code:
Private Sub INVtot_Change()
Diff_sum
INVtot.Value = Format(INVtot.Value, "R ***###,##")
End Sub
Last edited: