Range.Locks property (Word)
Returns a CoAuthLocks collection object that represents all the locks in the range. Read-only.
Syntax
expression. Locks
expression An expression that returns a Range object.
Remarks
Use the Locks property to return the CoAuthLocks collection.
Note
This property is only available for co authoring enabled documents. If you attempt to access this property on a document that is not enabled for co authoring, you will receive a run-time error.
Example
The following code example displays the number of locks in the first paragraph of the active document.
MsgBox ActiveDocument.Paragraphs(1).Range.Locks.Count
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.