Discussion:
Word document "locked"
(too old to reply)
Andrew Wiles
2006-11-06 12:23:01 UTC
Permalink
Is there any way eithin an addin to determine if a document is currently
locked for edit?
Jonathan West
2006-11-07 12:32:19 UTC
Permalink
Post by Andrew Wiles
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
--
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
2006-11-07 12:54:02 UTC
Permalink
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
Post by Jonathan West
Post by Andrew Wiles
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
--
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
Jonathan West
2006-11-07 13:29:02 UTC
Permalink
Post by Jonathan West
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.
Ah, in that case you need the ProtectionType property of the document.
--
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
Loading...