Partager via


CoAuthor.Locks Property (Word)

Returns a CoAuthLocks collection that represents the locks in the document that are associated with the specified co-author. Read-only.

Version Information

Version Added: Word 2010

Syntax

expression .Locks

expression An expression that returns a CoAuthor object.

Example

The following code example displays the number of locks that are associated with the first co-author in the active document.

Dim lockCount As Integer 
Dim coAuth As CoAuthor 
 
Set coAuth = ActiveDocument.CoAuthoring.Authors(1) 
lockCount = coAuth.Locks.Count 
 
MsgBox "There are " & lockCount & _ 
 " locks in the active document for " & _ 
 coAuth.Name & "."

See Also

Concepts

CoAuthor Object Members

CoAuthor Object