返回一个
Sync 对象,该对象提供对构成“文档工作区”的文档的方法和属性的访问。
语法
表达式.Sync
表达式 必选。一个代表 Document 对象的变量。
示例
如果活动文档是“文档工作区”中的共享文档,则以下示例显示活动文档最后一个修改者的姓名。
示例代码 |
let strLastUser
let eStatus = ActiveDocument.Sync.Status
if(eStatus == msoSyncStatusLatest) {
strLastUser = ActiveDocument.Sync.WorkspaceLastChangedBy
MsgBox("You have the most up-to-date copy." + "This file was last modified by " + strLastUser)
}
|