> Is there any way eithin an addin to determine if a document is currently
> locked for edit?
How to check if a file has already been opened by another user
http://www.word.mvps.org/FAQs/MacrosVBA/CheckIfFileOpen.htm

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
Andrew Wiles - 07 Nov 2006 12:54 GMT
Jonathan
Apologies - I don't think that my request was as specific as it should have
been. What I need to find out is the condition the document has been
"protected for edit". When the document is opened the user will need to enter
a password to unlock the document for edit. Prior to unlocking the document
we want to modify the stse of our addin menu items to be disabled.
Regards
> > Is there any way eithin an addin to determine if a document is currently
> > locked for edit?
>
> How to check if a file has already been opened by another user
> http://www.word.mvps.org/FAQs/MacrosVBA/CheckIfFileOpen.htm
Jonathan West - 07 Nov 2006 13:29 GMT
> Jonathan
>
[quoted text clipped - 6 lines]
> document
> we want to modify the stse of our addin menu items to be disabled.
Ah, in that case you need the ProtectionType property of the document.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org