Workbook.FullNameURLEncoded 属性 (Excel)Workbook.FullNameURLEncoded property (Excel)

返回一个指示对象,包括其路径在磁盘上,为字符串的名称的字符串Returns a String indicating the name of the object, including its path on disk, as a string. 只读。Read-only.


expressionexpression. FullNameURLEncoded

expression 表示 Workbook 对象的变量。expression A variable that represents a Workbook object.


在本示例中,Microsoft Excel 向用户显示活动工作簿的路径和文件名称。In this example, Microsoft Excel displays the path and file name of the active workbook to the user.

Sub UseCanonical() 
 ' Display the full path to user. 
 MsgBox ActiveWorkbook.FullNameURLEncoded 
End Sub

另请参阅See also

Workbook 对象Workbook Object