Two seperate instances of winword.exe
Posted on 2007-11-21
I have two seperate instances of winword.exe running in my machine. I want to run the macro which is present in the second instance of winword.exe. If I use the code Set objWordApp = GetObject(,"Word.Application") it always points to the first instance of running word in which there is no macro to run, so it causing an error for me. Can I switch between winword.exe instances. In my search I am able to find the correct window, get its caption, handle. threadID, processID (two PID of each winword). But how can I relate all these info and get or identify the second winword.exe object????