tab textbox by a macro

  • Thread starter Thread starter Alberto Ast
  • Start date Start date
A

Alberto Ast

I have some textbox in a user form...
I start on textbox1 and then once it is filled in a click commandbuttom1..
This click will populate some data then I then would like the cursor to move
to textbox2...

How do I do it with a macro and not expecting user to hit tab or enter?
 
Hi alberto,

At the end of the code run by CommandButton1 insert the following.

Me.TextBox2.SetFocus
 
Back
Top