Word) (Document.Sync 屬性
注意事項
此物件或成員已被取代,但是為了提供回溯相容性,仍屬於物件模型的一部分。 不應該在新的應用程式中使用。
語法
運算式。同步
需要 expression。 代表 Document 物件的變數。
範例
如果使用中文件為 [文件工作區] 中的共用文件,下列範例就會顯示最後修改使用中文件的人員姓名。
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
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。