Workbook.Application-Eigenschaft (2007 System)
Aktualisiert: November 2007
Ruft eine Microsoft.Office.Interop.Excel.Application ab, die den Ersteller des Arbeitsblatts darstellt.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)
Syntax
<BrowsableAttribute(False)> _
Public ReadOnly Property Application As Application
Dim instance As Workbook
Dim value As Application
value = instance.Application
[BrowsableAttribute(false)]
public Application Application { get; }
Eigenschaftenwert
Typ: Microsoft.Office.Interop.Excel.Application
Eine Microsoft.Office.Interop.Excel.Application, die den Ersteller des Arbeitsblatts darstellt.
Beispiele
Im folgenden Codebeispiel wird mithilfe der Application-Eigenschaft der Name der Anwendung angezeigt, in der die aktuelle Arbeitsmappe erstellt wurde.
Dieses Beispiel bezieht sich auf eine Anpassung auf Dokumentebene.
Private Sub DisplayApplicationName()
MsgBox("The creator of this workbook is: " & _
Me.Application.Name)
End Sub
private void DisplayApplicationName()
{
MessageBox.Show("The creator of this workbook is: " +
this.Application.Name);
}
Berechtigungen
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.