Document.Sync Property (Word)

Office 2013 and later

Contribute to this content

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

This object or member has been deprecated, but it remains part of the object model for backward compatibility. You should not use it in new applications.

expression .Sync

expression Required. A variable that represents a Document object.

The following example displays the name of the last person to modify the active document if the active document is a shared document in a Document Workspace.

Dim eStatus As MsoSyncStatusType 
Dim strLastUser As String 
eStatus = ActiveDocument.Sync.Status 
If eStatus = msoSyncStatusLatest Then 
 strLastUser = ActiveDocument.Sync.WorkspaceLastChangedBy 
 MsgBox "You have the most up-to-date copy." & _ 
 "This file was last modified by " & strLastUser 
End If