G
garnote
Hi all,
Private Sub TextBox1_AfterUpdate()
If Len(TextBox1.Text) > 5 Then
MsgBox "Invalide"
With TextBox1
.SetFocus
.SelStart = 0
.SelLength = Len(.Text)
End With
End If
End Sub
Why Textbox1 don't have the focus with this Sub ?
Thanks,
Serge
Private Sub TextBox1_AfterUpdate()
If Len(TextBox1.Text) > 5 Then
MsgBox "Invalide"
With TextBox1
.SetFocus
.SelStart = 0
.SelLength = Len(.Text)
End With
End If
End Sub
Why Textbox1 don't have the focus with this Sub ?
Thanks,
Serge