CoAuthLocks.Count property (Word)

Returns a Long that represents the number of locks in the CoAuthLocks collection. Read-only.

Syntax

expression.Count

expression An expression that returns a CoAuthLocks object.

Example

The following code example displays the number of locks in the active document.

MsgBox "The active document contains " & _ 
    ActiveDocument.CoAuthoring.Locks.Count & " locks."

See also

CoAuthLocks Object

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.