Edytuj

Udostępnij za pośrednictwem


PivotTables Interface

Definition

A collection of all the PivotTable objects on the specified worksheet.

public interface class PivotTables : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020873-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface PivotTables : System.Collections.IEnumerable
Public Interface PivotTables
Implements IEnumerable
Attributes
Implements

Remarks

Use the PivotTables(Object) method to return the PivotTables collection.

Use the PivotTableWizard(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) method to create a new PivotTable report and add it to the collection.

Use PivotTables(index), where index is the PivotTable index number or name, to return a single PivotTable object.

Because PivotTable report programming can be complex, it’s generally easiest to record PivotTable report actions and then revise the recorded code. To record a macro, point to Macro on the Tools menu and click Record New Macro.

Properties

Application

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

Count

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

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

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

Methods

Add(PivotCache, Object, Object, Object, Object)

Adds a new PivotTable report. Returns a PivotTable object.

GetEnumerator()
Item(Object)

Returns a single object from a collection.

Applies to