Table of contents
TOC
Collapse the table of content
Expand the table of content

Document.FullName Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Returns a String representing the full file name of the saved active publication, including its path and file name. Read-only.

Syntax

expression. FullName

_expression_A variable that represents a Document object.

Return Value

String

Remarks

The FullName property can be used to return both path and file name as returned by the Path and Name properties.

Example

The following example demonstrates the differences between the Path, Name, and FullName properties. This example is best illustrated if the publication is saved in a folder other than the default.

Sub PathNames() 

 Dim strPath As String 
 Dim strName As String 
 Dim strFullName As String 

 strPath = Application.ActiveDocument.Path 
 strName = Application.ActiveDocument.Name 
 strFullName = Application.ActiveDocument.FullName 

 ' Note the file name &; path differences 
 ' while executing. 
 MsgBox "The path is: " &; strPath 
 MsgBox "The file name is: " &; strName 
 MsgBox "The path &; file name are: " &; strFullName 

End Sub
© 2018 Microsoft