Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

Shifting focus

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
C Holmes - 14 Jul 2005 14:19 GMT
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 Holmes - 14 Jul 2005 15:41 GMT
I guess I should have searched first before posting. Found the answer I was
looking for. Thanks Helmut!

> Hi Everyone,
>
[quoted text clipped - 11 lines]
>
> Thanks in advance.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.