>Hi,
>
>Thanks to all that have tried to help me along, but I still have a problem: (VFP5/Win98/Word97)
>
>I write a small program, creating the Word application object,
>then
>oWord.Documents.Open("MYFILE.DOC")
>oWord.Visible = .T.
>oWord.Application.Activate
>
>which lets me see Word with the document in a brief flash, then
>it is gone. If I insert a wait window command after activating Word,
>I can access end edit the document, then close it, and hit any key to remove the wait message and continue with the program. But it should not be necessary to to it that way? I haven't found out how to maximize Word either. VBA, as far as I can see, doesn't give any clue to the command for this except in a Word macro.
>
>Rolf
Rolf, probably your oWord variable goes out of scope. Try to declare it as Public for the test.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison