Hi All

Is there a way I can test to see if a document is opened for editing
by another user before I try to open it?

I would like to be able to make a call to test if my Documents.Open
will be successful and not result in the pop-up "The files is locked
for editing by 'another user'".

Is it possible to test for this? Thanks in advance for any answers.

Chrisso

Re: Test to see if a document is opened for editing by another user before open. by Ian

Ian
Wed May 21 01:02:08 PDT 2008

Hi Chrisso

AFAIK you will need to use an API call from VBA.
If you wish to go down this path I can give you some sample code.
The code checks the file to see whether it can be opened exclusively.

Cheers

Ian B

"Chrisso" <chris75sutton@gmail.com> wrote in message
news:fe794bfc-02a2-488c-aa09-ca3bc13cffd8@b64g2000hsa.googlegroups.com...
> Hi All
>
> Is there a way I can test to see if a document is opened for editing
> by another user before I try to open it?
>
> I would like to be able to make a call to test if my Documents.Open
> will be successful and not result in the pop-up "The files is locked
> for editing by 'another user'".
>
> Is it possible to test for this? Thanks in advance for any answers.
>
> Chrisso