fileUpdatedDate 属性

       

返回 String 类型的值,该值代表当前文档上次更新的日期和时间。只读。

expression.fileUpdatedDate

expression  必选。返回 DispFPHTMLDocument 对象的表达式。

示例

下列示例显示文件的名称及其上次更新的日期和时间。

Sub GetFilelastUpdate()
'Returns the date that the file was last updated

    Dim objApp As FrontPage.Application
    Dim objDoc As DispFPHTMLDocument

    Set objApp = FrontPage.Application
    Set objDoc = objApp.ActiveDocument
    'Displays date the file was last updated.
    MsgBox "The file " & objDoc.nameProp & " was last updated " & _
            objDoc.fileUpdatedDate & "."

End Sub