Hi!
To check if file already opened in Word:
For Each aDoc In loWord.Documents
If lcFile $ aDoc.Name
docFound = True
EndIf
EndFor
If !docFound
loWord.Documents.Open(lcFile)
EndIf
>From this line:
>
>
>loWord.Documents.Open(lcFile)
>
>
>I would like to detect if the open was successfull. In development, I faced a situation where I had the file open. So, a dialog was prompted. I would like to detect that and take action.