Edit

Share via


CoAuthLock.Owner property (Word)

Returns the CoAuthor that owns the specified lock. Read-only.

Syntax

expression. Owner

expression An expression that returns a 'CoAuthLock' object.

Example

The following code example displays the name of the owner of each lock in the active document.

Dim myLock As CoAuthLock 
 
For Each myLock In ActiveDocument.CoAuthoring.Locks 
    MsgBox "The owner of this lock is " & _ 
    myLock.Owner.Name & "." 
Next myLock

See also

CoAuthLock 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.