Shifting focus

C

C Holmes

Hi Everyone,

I've got a word macro which opens a userform. The user makes a selection on
the form, then clicks "Ok". Some text get's inserted on the document, and
then focus goes back to the userform. Finished.

The focus is still with the form, so the user must click back on the
document to continue typing.

Is there some line of code I could use to have it so that when to code is
finished executing behind the "Ok" button, the focus goes to the document (so
that each time the user doesn't have to click back on the document to
continue typing)?

Thanks in advance.
 
C

C Holmes

I guess I should have searched first before posting. Found the answer I was
looking for. Thanks Helmut!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top