次の方法で共有


CoAuthLock.Unlock Method (Word)

Unlocks the specified lock.

Version Information

Version Added: Word 2010

Syntax

expression .Unlock

expression An expression that returns a CoAuthLock object.

Return Value

Nothing

Remarks

The Unlock method unlocks the specified lock even if it belongs to another user other than the current user.

Example

The following code example unlocks all locks in the active document.

Dim myLock as CoAuthLock 
 
For Each myLock In ActiveDocument.CoAuthoring.Locks 
   myLock.Unlock     
Next myLock

See Also

Concepts

CoAuthLock Object Members

CoAuthLock Object