Thread: Cursor position
View Single Post
  #2   Report Post  
Brian Synowiec
 
Posts: n/a
Default

"saziz" wrote:

Hi All,
I have written a small VB script to collect data from the user. At the
end of data entry a YesNo response pops up. When the user hits Yes I
would like the cursor default position should be the first text box in
the new window. How can I do that.
Appreciate your help.
Syed


saziz-
Does this work?

'TextBox1 may need renaming
Private Sub UserForm_Activate()
TextBox1.SetFocus
End Sub

Brian