>>I've tried
>>
>>oDoc = GetObject(lcDocument, "Word.Application")
>>oDoc.Visible = .T.
>>
>>The first line returns an "OLE error code....No such interface supported."
>>
>>I'm just not understanding the GetObject() function. Isn't this what I want to use prevent the second launch of MS Word?
>>
>>Thank you very much
>
>Elgin,
>
>oWord = GetObject(, "Word.Application")
>oWord.Documnts.Open(lcDoc)
>
>Basically either creates a new instance or gets one existing if any. BUT never do it IMO. When you need one use createobject() or if you're keen about you want one only at least do it like :
>
>if isnull(oApp.oWord)
> oApp.oWord = createobject("Word.Application")
>endif
>
Unless there's some reason to automate Word in these circumstances, why not simply launch the document with ShellExecute()? The OS will use DDE to initiate a new Word window if Word is already up, and will launch Word if it's not currently running...