Hi,
I have a TextBox on my UserForm (TextBox119). I having difficulties selecting another TextBox once I validate the entry in TextBox119. I've reviewed many posts and tried many variations but to no avail. Whenever I enter a value and press enter or tab, the cursor goes to a ComboBox in the same Frame.
The TextBox'es are in Frame2 which Frame2 is in Multipage5, if this makes a difference.
Thanks for any help you can provide.
I have a TextBox on my UserForm (TextBox119). I having difficulties selecting another TextBox once I validate the entry in TextBox119. I've reviewed many posts and tried many variations but to no avail. Whenever I enter a value and press enter or tab, the cursor goes to a ComboBox in the same Frame.
Code:
Private Sub TextBox119_Exit(ByVal Cancel As MSForms.ReturnBoolean)
With TextBox119
If Not IsNumeric(.Text) And .Text <> "" Then
'.Text = Left(.Text, Len(.Text) - 1)
Msg = Msg & "Milestone Duration must be Numeric"
Style = vbOKOnly '//Define buttons.
Title = "Milestone Activation" '// Define title.
'// Display message.
Response = MsgBox(Msg, Style, Title)
Else
With TextBox126
.Text = ""
.SetFocus
End With
End If
End With
End Sub
The TextBox'es are in Frame2 which Frame2 is in Multipage5, if this makes a difference.
Thanks for any help you can provide.