指定文档、模板或级联样式表的名称,其中包含驱动器名称或 Web 路径。String 类型,只读。
expression.FullName
expression 必需。该表达式返回“应用于”列表中的一个对象。
使用该属性和顺序使用 Path、PathSeparator 和 Name 属性的作用相同。
本示例显示活动文档的路径和文件名。
Sub DocName()
MsgBox ActiveDocument.FullName
End Sub
本示例显示活动文档附加模板的路径和文件名。
Sub TemplateName()
MsgBox ActiveDocument.AttachedTemplate.FullName
End Sub
本示例显示活动文档附加样式表的路径和文件名。
Sub CSSName()
MsgBox ActiveDocument.StyleSheets(1).FullName
End Sub