Re: Return focus to word and Activate
- From: "Doug Robbins - Word MVP" <dkr@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 20 Sep 2009 18:10:48 +1000
How about activating the Word document itself?
--
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, originally posted via msnews.microsoft.com
"slickdock" <slickdock@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:1EBAF884-E7B1-4EBB-B041-28EFC1A452DD@xxxxxxxxxxxxxxxx
Here is the code that is in my MSACCESS 2002 module:
'leading up to this code, Word is launched, a document is merged and left on
screen
'for the user to work with:
wd.Visible = True
wd.Application.ScreenUpdating = True
wd.Application.Activate
The code activates the Word document screen and leave the cursor ready to
type on the Word screen. The code runs fine on any machine that uses Word
versions PRIOR to 2007. But when I use the same code with machines that use
Word 2007, the Word doc becomes visible and the cursor is visible, but you
have to manually click with the mouse in the Word doc before you can start
typing. If you start typing before you click with the mouse in the Word doc,
it turns out that msAccess is still holding the focus, because when you start
typing, you are typing on the msAccess form that was on the screen when the
code started running.
THanks for help.
.
- References:
- Return focus to word and Activate
- From: slickdock
- Return focus to word and Activate
- Prev by Date: Re: Macro to protect/unprotect document
- Next by Date: Find/Replace Just Headings
- Previous by thread: Return focus to word and Activate
- Next by thread: modify ListAcronyms macro (for definitions before acronyms)
- Index(es):
Relevant Pages
|
Loading