PDA

View Full Version : Solved: textbox focus



fgarcia90
07-19-2012, 02:36 PM
I have a userform with several textbox's, combo's, check box's and with 9 page and I want to activave the focus on the fist item to fill in the first page. I tried the above code but with no sucess.
Does anyone can give me a hand?



Private Sub UserForm_Activate()
me.Produto.SetFocus
end sub



note:
"me" is a userform
"produto" is the textbox


thanks in advanced

Bob Phillips
07-19-2012, 02:41 PM
Works fine for me. What else is on the form?

fgarcia90
07-19-2012, 02:52 PM
so many so many things...

mikerickson
07-19-2012, 04:14 PM
You may be running into problems if the wrong page is active in the multipage.
Try


Me.MultiPage1.Value = Me.Producto.Parent.Index
Me.Producto.SetFocus

fgarcia90
07-20-2012, 01:12 AM
mikerickson your tip works fine :)
thanks