E
Ed
Hello all,
Using Word 2003. I have a VBA userform which contains a textbox
(txtFindText) and some buttons.
When the form is displayed I would like the textbox to have the focus.
I have a line - txtFindText.SetFocus - in the form's initialisation handler
and this seems to work when I invoke the form by "MyForm.Show".
However, if I invoke the form by "MyForm.Show vbModeless" the textbox does
not seem to get the focus and I seem to need to press the Enter key to give
the box the focus.
Is there a way to give the textbox the focus when the form is displayed as
modeless?
Thanks.
Ed.
Using Word 2003. I have a VBA userform which contains a textbox
(txtFindText) and some buttons.
When the form is displayed I would like the textbox to have the focus.
I have a line - txtFindText.SetFocus - in the form's initialisation handler
and this seems to work when I invoke the form by "MyForm.Show".
However, if I invoke the form by "MyForm.Show vbModeless" the textbox does
not seem to get the focus and I seem to need to press the Enter key to give
the box the focus.
Is there a way to give the textbox the focus when the form is displayed as
modeless?
Thanks.
Ed.