Ok Guys - for those smart enough to help me with this you will find what I am trying to achieve in the following code self evident
- for some reason the SetFocus command will not work when I try to return it to TextBox8 on exit event - it simply ignores that line of code - but it will set the focus on other textboxes. I know the answer will be simple but I have literally spent about 10 hours on this ridiculously small issue.
Code:
Private Sub TextBox8_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Dim howmany
howmany = TextBox8.TextLength
If TextBox8.TextLength = "17" Then
Me.TextBox7.SetFocus
Else
MsgBox ("Must be 17 Characters you have entered " & howmany & " Characters")
Me.TextBox8.SetFocus
End If
End Sub
Bookmarks