Partilhar via


WorkbookBase.FullName Property

Gets the name of the object, including its path on disk.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
Public ReadOnly Property FullName As String
public string FullName { get; }

Property Value

Type: System.String
The name of the object, including its path on disk.

Remarks

This property is equivalent to the Path property, followed by the current file system separator, followed by the Name property.

Examples

The following code example uses the FullName property to display the full name of the workbook, including its path.

This example is for a document-level customization.

Private Sub DisplayFullName()
    MsgBox("The path and name of the current workbook is: " & _
        Me.FullName)
End Sub
private void DisplayFullName()
{
    MessageBox.Show("The path and name of the current workbook is: " +
        this.FullName);
}

.NET Framework Security

See Also

Reference

WorkbookBase Class

Microsoft.Office.Tools.Excel Namespace