
Can't get cursor to appear in textbox
Hi Mitch,
In the Macro that calls the userform, just use
UserForm1.Show.
In the Initialize() event for the userform use
Private Sub UserForm_Initialize()
TextBox1.SetFocus
End Sub
That code is in the userform itself, not in the macro that calls the
userform.
Please post any response to the newsgroups for the benefit of others who may
also be following the thread.
Hope this helps,
Doug Robbins - Word MVP
Quote:
> I'm really at a loss here...
> Load UserForm1
> UserForm1.TextBox1.SetFocus
> UserForm1.Show
> The cursor is nowhere to be seen, I can't type anything in the textbox
until
> I tab back to the textbox. Tab order for textbox is 0. Am I missing
> something?
> Appreciate any help.
> --
> Mitchell Renner