QueryTables QueryTables QueryTables Interface


A collection of QueryTable objects. Each QueryTable object represents a worksheet table built from data returned from an external data source.

public interface class QueryTables : System::Collections::IEnumerable
public interface QueryTables : System.Collections.IEnumerable
Public Interface QueryTables
Implements IEnumerable


Use the QueryTables property to return the QueryTables collection.

Use the Add(Object, Range, Object) method to create a new query table and add it to the QueryTables collection.


_Default[Object] _Default[Object] _Default[Object]

Reserved for internal use.

Application Application Application

Returns an Application object that represents the Microsoft Excel application. Read-only.

Count Count Count

Returns the number of objects in the collection. Read-only Integer.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which this object was created. If the object was created in Microsoft Excel, this property returns the string XCEL, which is equivalent to the hexadecimal number 5843454C. Read-only XlCreator.

Parent Parent Parent

Returns the parent object for the specified object. Read-only.


Add(Object, Range, Object) Add(Object, Range, Object) Add(Object, Range, Object)

Creates a new query table. Returns a QueryTable object that represents the new query table.

GetEnumerator() GetEnumerator() GetEnumerator()
Item(Object) Item(Object) Item(Object)

Returns a single object from a collection.

Applies to