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?

Re: Userform Problem by Doug

Doug
Tue Feb 06 13:43:41 CST 2007

Have you tried using SetFocus to set the focus to a control on the form.

--
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

"klav" <klav@discussions.microsoft.com> wrote in message
news:15088B3B-20EE-4EB1-BE36-00AF7CE9A654@microsoft.com...
> 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?



Re: Userform Problem by klav

klav
Tue Feb 06 14:01:01 CST 2007

Yes, I have tried that but it doesn't make the userform "active" -- the user
must still click somewhere in the form.

"Doug Robbins - Word MVP" wrote:

> Have you tried using SetFocus to set the focus to a control on the form.
>
> --
> 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
>
> "klav" <klav@discussions.microsoft.com> wrote in message
> news:15088B3B-20EE-4EB1-BE36-00AF7CE9A654@microsoft.com...
> > 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?
>
>
>

Re: Userform Problem by Tony

Tony
Tue Feb 06 16:30:57 CST 2007

If the userform doesn't have the focus when you have finished, what does?

--
Enjoy,
Tony

"klav" <klav@discussions.microsoft.com> wrote in message
news:15088B3B-20EE-4EB1-BE36-00AF7CE9A654@microsoft.com...
> 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?