Workbook.Application, propriété (System 2007)
Mise à jour : novembre 2007
Obtient un Microsoft.Office.Interop.Excel.Application qui représente le créateur du classeur.
Espace de noms : Microsoft.Office.Tools.Excel
Assembly : Microsoft.Office.Tools.Excel.v9.0 (dans Microsoft.Office.Tools.Excel.v9.0.dll)
Syntaxe
<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; }
Valeur de propriété
Type : Microsoft.Office.Interop.Excel.Application
Un Microsoft.Office.Interop.Excel.Application qui représente le créateur du classeur.
Exemples
L'exemple de code suivant utilise la propriété Application pour afficher le nom de l'application qui a créé le classeur actif.
Cet exemple illustre une personnalisation au niveau du document.
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);
}
Autorisations
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.