>Hi all.
>
>I'm trying to Automate word and use it to edit rtf files. The problem I'm having is...once I create the word object and display word...If the user closes
>Word it crases my program. How can i tell if Word is still running.
>
>TIA
>Carl
Vartype, type and isnull didn't work.
But what you can try is make your own function
Function OLEobjectExists
LParameter oRef
Local lcOnError, llError, lcTemp
lcOnError = On('Error')
On Error llError = .t.
lcTemp = oRef.Name
On Error &lcOnError
Return llError
EndFunc
HTH