Another option would be
WshShell = CreateObject("WScript.Shell")
ReturnCode = WshShell.Run("c:\test.doc", 1, .t.)
MESSAGEBOX("finished")
Notice the messagebox does not appear until you close the word document.
>I need to modify document before send it to fax.
>
>oWord = createobject("word.application")
>oWord.visible = .t.
>oWord.Documents.Open("MyDocumentToModify")
>**************************
>&& I need to wait here
>**************************
>release oWord
>*********************************
>do sendtofax with "MyDocumentToModify"
>*********************************