I'm using the Word object's Open method to open a file, eg
This works fine, unless the file is opened by another user (or anothe rprocess) in which case the program hangs while waiting for a response to a message that the user can't see.Code:Dim objWordApp as Word.Application
Dim objWordDoc as Word.Document
Set objWordApp = New Word.Application
Set objWordDoc = objWordApp.Documents.Open <Path>
Is there any way to check if the file is locked before opening it. Being able to find out the name of the workstation that has it locked would be even better.
