View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Harald Staff Harald Staff is offline
external usenet poster
 
Posts: 1,327
Default Excel Vba - Text Box active by default

Hi ALdo

In the userform module:

Private Sub UserForm_Initialize()
TextBox2.SetFocus
End Sub

HTH. Best wishes Harald

"ajliaks " skrev i melding
...
Hi all,

I am using a user for which contains two text boxes.

I want TextBox2 being my default option when userform activates.

I need to show the cursor into TextBox2 and ready to input data.
Could anyone help, please?

Thanks in advance,
Aldo.


---
Message posted from http://www.ExcelForum.com/