Udostępnij za pośrednictwem


ListObject.QueryTable Property (2007 System)

Gets the QueryTable that provides a link for the ListObject control to the list server.

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property QueryTable As QueryTable
'Usage
Dim instance As ListObject 
Dim value As QueryTable 

value = instance.QueryTable
[BrowsableAttribute(false)]
public QueryTable QueryTable { get; }
[BrowsableAttribute(false)]
public:
property QueryTable^ QueryTable {
    QueryTable^ get ();
}
public function get QueryTable () : QueryTable

Property Value

Type: QueryTable
The QueryTable that provides a link for the ListObject control to the list server.

Examples

The following code example uses the QueryTable property to refresh the query table that intersects a ListObject. This code example assumes that the current worksheet contains a ListObject named customerListObject that is intersected by a query table.

This example is for a document-level customization.

Private Sub ListObject_QueryTable()
    Me.customerListObject.QueryTable.Refresh()
End Sub
private void ListObject_QueryTable()
{
    this.customerListObject.QueryTable.Refresh(missing);
}

.NET Framework Security

See Also

Reference

ListObject Class

ListObject Members

Microsoft.Office.Tools.Excel Namespace