This is probably a very simple task but I cannot seem to get it to work.
I am displaying a userform and when one of the radio buttons is selected, I
am opening a Word document, searching for something and then closing that
document. At that point, the form is still displayed but in order to activate
it, the user must click on it. What code do I need to use in order for the
userform to automatically be activated?
Doug Robbins - Word MVP - 06 Feb 2007 19:43 GMT
Have you tried using SetFocus to set the focus to a control on the form.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> This is probably a very simple task but I cannot seem to get it to work.
>
[quoted text clipped - 5 lines]
> it, the user must click on it. What code do I need to use in order for the
> userform to automatically be activated?
klav - 06 Feb 2007 20:01 GMT
Yes, I have tried that but it doesn't make the userform "active" -- the user
must still click somewhere in the form.
> Have you tried using SetFocus to set the focus to a control on the form.
>
[quoted text clipped - 7 lines]
> > it, the user must click on it. What code do I need to use in order for the
> > userform to automatically be activated?
Tony Jollans - 06 Feb 2007 22:30 GMT
If the userform doesn't have the focus when you have finished, what does?

Signature
Enjoy,
Tony
> This is probably a very simple task but I cannot seem to get it to work.
>
[quoted text clipped - 5 lines]
> it, the user must click on it. What code do I need to use in order for the
> userform to automatically be activated?