语言

QueryTables 接口

定义

对象的 QueryTable 集合。 每一个 QueryTable 对象都代表一个利用从外部数据源返回的数据生成的工作表表格。

public interface class QueryTables : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00024429-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface QueryTables : System.Collections.IEnumerable
Public Interface QueryTables
Implements IEnumerable
属性
实现

注解

使用该 QueryTables 属性返回 QueryTables 集合。

使用该 Add(Object, Range, Object) 方法创建新的查询表并将其添加到 QueryTables 集合。

属性

名称 说明
_Default[Object]

仅供内部使用。

Application

返回表示 Application Microsoft Excel 应用程序的对象。 只读。

Count

返回集合中对象的数目。 只读 Integer

Creator

返回一个 32 位整数,该整数指示在其中创建了此对象的应用程序。 如果该对象是在 Microsoft Excel 中创建的,则此属性返回字符串 XCEL,它等同于十六进制的数字 5843454C。 只读 XlCreator

Parent

返回指定对象的父对象。 只读。

方法

名称 说明
Add(Object, Range, Object)

新建一个查询表。 返回 QueryTable 表示新查询表的对象。

GetEnumerator()

对象的 QueryTable 集合。 每一个 QueryTable 对象都代表一个利用从外部数据源返回的数据生成的工作表表格。

Item(Object)

从集合中返回一个对象。

适用于