CoAuthoring Object (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

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.

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