Userform otomatic to perceive

O

oksar.emre

hi
Userform put on the two textbox.they are names textbox1 and textbox2.
They are valeu's character length four if textbox2 selecting.

what is userform events?
-------------------------------------------------------
Private Sub UserForm_????????????()

if len(textbox1)=4 then
textbox2.setfocus
end if

End Sub
 
P

Per Jessen

Hi

Something like this:

Private Sub TextBox1_Change()
If Len(Me.TextBox1.Value) = 4 Then Me.TextBox2.SetFocus
End Sub

Regards,

Per
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top