Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.11 KB

Word.Document.Sync(property).md

File metadata and controls

46 lines (30 loc) · 1.11 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Document.Sync property (Word)
vbawd10.chm158007762
vbawd10.chm158007762
Word.Document.Sync
c48b0b07-84c6-0097-509c-ee6fb9b3784e
06/08/2017
medium

Document.Sync property (Word)

Note

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.

Syntax

expression.Sync

expression Required. A variable that represents a Document object.

Example

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

[!includeSupport and feedback]