Returns a String that represents the name of the current document. Read-only.
expression.nameProp
expression Required. An expression that returns a DispFPHTMLDocument object.
The following example uses the nameProp property to display the name of the document along with the date that the document was last modified.
Sub GetLastModifiedDate()
'Returns the last modification date of the current document
Dim objApp As FrontPage.Application
Dim objDoc As DispFPHTMLDocument
Set objApp = FrontPage.Application
Set objDoc = objApp.ActiveDocument
'Display name of file and date last modified.
MsgBox "The file " & objDoc.nameProp & " was last modified on " & _
objDoc.lastModified & "."
End Sub