Workbook.FullName Property (2007 System)
Gets the name of the object, including its path on disk.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)
Syntax
'Declaration
Public ReadOnly Property FullName As String
'Usage
Dim instance As Workbook
Dim value As String
value = instance.FullName
public string FullName { get; }
public:
property String^ FullName {
String^ get ();
}
public function get FullName () : String
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.