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.

Move 'focus' from User Screen to Active Document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ed - 01 Jul 2005 03:50 GMT
   I have an User Form with a dropdown list of values. I can click in a
value from a drop down list into the active document.

   After I click in the value from the list, I want to immediately begin
typing in the document. However, after the click on the list, the list
retains focus. I have tried ActiveDocument.Activate at the end of the list's
change event (to try to shift the focus to the active document) but it
didn't work. (BTW: if I step through the commands with F8,
'ActiveDocument.Activate' does work. It just doesn't work when the program
is in full operation.

   I have also tried 'Windows(ActiveDocument).SetFocus' and
'ActiveWindow.Activate'. Didn't work.

   Any hints? Thanks.

           Ed
Helmut Weber - 01 Jul 2005 08:35 GMT
Hi Ed,

set userform properties showmodal to false
plus
Application.activate

Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000
 
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.