Export (0) Print
Expand All

ListObject.Application Property

Gets an Application that represents either the Microsoft Office Excel application or the creator of the ListObject.

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

Application Application { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Application
An Application that represents the creator of the ListObject.

The following code example gets the name and version of the application that contains the ListObject and displays the information in a message box.

This example is for a document-level customization.

private void ListObject_Application()
    Microsoft.Office.Tools.Excel.ListObject list1 =
        this.Controls.AddListObject(this.Range["A1", "B2"],
    string applicationVersion = list1.Application.Name +
        " " + list1.Application.Version;

© 2015 Microsoft