Switch focus between multiple word applications

Discussion in 'Word VBA' started by Dalsium, Jan 22, 2014.

  1. Dalsium

    Dalsium Guest

    Hi,

    I would like to copy text from word document A to word document B using VBA.

    The problem is, that document B is always in another word-application than document A (so in the task manager I see 2 WINWORD.EXE lines).

    Is there any way to switch focus between the 2 applications, without having to close one of the applications?

    Thanks in advance,
    Remco
     
    Dalsium, Jan 22, 2014
    #1
    1. Advertisements

  2. Dalsium

    Stefan Blom Guest

    I don't think there is a way to control two instances of Word via VBA... You
    could try asking in the programming forum in the Microsoft Community
    (http://answers.microsoft.com/en-us/...postedBefore=&threadType=All&tm=1390951472367)
    or possibly in the Word Developer forum at MSDN
    (http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=worddev).

    --
    Stefan Blom
    Microsoft Word MVP




    "Dalsium" <> wrote in message
    news:...
    > Hi,
    >
    > I would like to copy text from word document A to word document B using
    > VBA.
    >
    > The problem is, that document B is always in another word-application than
    > document A (so in the task manager I see 2 WINWORD.EXE lines).
    >
    > Is there any way to switch focus between the 2 applications, without
    > having to close one of the applications?
    >
    > Thanks in advance,
    > Remco
     
    Stefan Blom, Jan 28, 2014
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Brent Marcotte

    Multiple Word Applications

    Brent Marcotte, Aug 30, 2004, in forum: Word VBA
    Replies:
    3
    Views:
    106
    Jay Freedman
    Aug 31, 2004
  2. Andrew
    Replies:
    2
    Views:
    142
    Andrew
    Mar 25, 2005
  3. Replies:
    1
    Views:
    121
    Cindy M -WordMVP-
    Apr 23, 2005
  4. Bill Bowes
    Replies:
    1
    Views:
    180
    Jonathan West
    Sep 17, 2007
  5. aehan

    Switch between drives

    aehan, Dec 17, 2007, in forum: Word VBA
    Replies:
    4
    Views:
    190
    aehan
    Dec 18, 2007
  6. Tony Broadbent

    Passing Parameters between Applications

    Tony Broadbent, Dec 20, 2007, in forum: Word VBA
    Replies:
    2
    Views:
    74
    Tony Broadbent
    Dec 20, 2007
  7. Replies:
    2
    Views:
    433
    Jay Freedman
    Apr 17, 2009
  8. Outatym

    Switch between document and close

    Outatym, Apr 22, 2009, in forum: Word VBA
    Replies:
    1
    Views:
    97
    Graham Mayor
    Apr 23, 2009
Loading...