FullName Property

Microsoft Word Visual Basic

expression.FullName

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

Using this property is equivalent to using the Path, PathSeparator, and Name properties in sequence.

Example

This example displays the path and file name of the active document.

Sub DocName()
    MsgBox ActiveDocument.FullName
End Sub
		

This example displays the path and file name of the template attached to the active document.

Sub TemplateName()
    MsgBox ActiveDocument.AttachedTemplate.FullName
End Sub
		

This example displays the path and file name of the style sheet attached to the active document.

Sub CSSName()
    MsgBox ActiveDocument.StyleSheets(1).FullName
End Sub