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

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