CoAuthLock.Type Property (Word)

Returns a WdLockType constant that specifies the lock type. Read-only.

Version Information

Version Added: Word 2010

Syntax

expression .Type

expression An expression that returns a CoAuthLock object.

Example

The following code example removes all the reservation locks in the active document.

Dim myLock As CoAuthLock 
 
For Each myLock In ActiveDocument.CoAuthoring.Locks 
    If myLock.Type = wdLockReservation Then 
        myLock.Unlock 
    End If 
Next myLock

See Also

Concepts

CoAuthLock Object

CoAuthLock Object Members