Upravit

Sdílet prostřednictvím


CoAuthoring object (Word)

Provides the primary entry point to the co authoring object model.

Remarks

The CoAuthoring object provides information about co authoring at the document level. For example, the CoAuthoring object can provide information about whether there are any locks in the document, which users have current locks in the document, or whether or not updates to the document content is available from the server. Use the CoAuthoring property to return the CoAuthoring object.

Example

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

Sub CountLocks() 
Dim i As Integer 
 
i = ActiveDocument.CoAuthoring.Locks.Count 
 
MsgBox i 
 
End Sub

See also

Word Object Model Reference

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.