Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2006

Tip: Looking for answers? Try searching our database.

Word document "locked"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew Wiles - 06 Nov 2006 12:23 GMT
Is there any way eithin an addin to determine if a document is currently
locked for edit?
Jonathan West - 07 Nov 2006 12:32 GMT
> 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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.