Stay in TextBox - UserForm
I have a UserForm and for a TextBox I have the following code associated with it:
[VBA]
If IsNumeric(TextBox130.Value) Then
TextBox130.Value = Round(TextBox130.Value, 0)
JobArea(0).SqFt = TextBox130.Value
Call UpdateSqFtTotal
Else
MsgBox ("Please input a Number!"), vbInformation, "Data Input"
TextBox130.Text = ""
End If
[/VBA]
I want the cursor to return to the TextBox so that the user can start entering the correct data.
I have this code in a AfterUpdate(). I also tried putting it in an Exit() with Cancel set to True but I am not getting what I want.
Suggestions or questions.
Thanks