Try code like the following in the form's code module.
Private Sub UserForm_Activate()
Me.TextBox2.SetFocus
End Sub
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
"Mahesh Baldi - India" wrote in message
oups.com...
How do i put the cursor in TextBox in Userform automatically
when form
is called by userform1.show. I want this for entering a
password for
opening an excel file.
Please Tell Me
Mahesh Baldi
India