PivotTable Methods

Include Protected Members
Include Inherited Members

The PivotTable type exposes the following members.

Methods

  Name Description
Public method _PivotSelect Reserved for internal use.
Public method AddDataField Adds a data field to a PivotTable report. Returns a PivotField object that represents the new data field.
Public method AddFields Adds row, column, and page fields to a PivotTable report or PivotChart report.
Public method AllocateChanges Performs a writeback operation for all edited cells in a PivotTable report based on an OLAP data source.
Public method CalculatedFields Returns a CalculatedFields collection that represents all the calculated fields in the specified PivotTable report. Read-only.
Public method ChangeConnection Changes the connection of the specified PivotTable.
Public method ChangePivotCache Changes the PivotCache of the specified PivotTable.
Public method ClearAllFilters The ClearAllFilters() method deletes all filters currently applied to the PivotTable. This includes deleting all filters in the PivotFilters collection of the PivotTable object, removing any manual filtering applied and setting all PivotFields in the Report Filter area to the default item.
Public method ClearTable The ClearTable() method is used for clearing a PivotTable. Clearing PivotTables includes removing all the fields and deleting all filtering and sorting applied to the PivotTables. This method resets the PivotTable to the state it had right after it was created, before any fields were added to it.
Public method CommitChanges Performs a commit operation on the data source of a PivotTable report based on an OLAP data source.
Public method ConvertToFormulas The ConvertToFormulas(Boolean) method is new in 1st_Excel12 and is used for converting a PivotTable to cube formulas.
Public method CreateCubeFile Creates a cube file from a PivotTable report connected to an Online Analytical Processing (OLAP) data source.
Public method DiscardChanges Discards all changes in the edited cells of a PivotTable report based on an OLAP data source.
Public method Dummy15 Reserved for internal use.
Public method Format Sets a PivotTable report to one of the predefined indented, nonindented, or cross-tabulated formats.
Public method GetData Returns data from the specified PivotTable cell.
Public method GetPivotData Returns a Range object with information about a data item in a PivotTable report.
Public method ListFormulas Creates a list of calculated PivotTable items and fields on a separate worksheet.
Public method PivotCache Returns a PivotCache object that represents the cache for the specified PivotTable report. Read-only.
Public method PivotFields Returns an object that represents either a single PivotTable field (a PivotField object) or a collection of both the visible and hidden fields (a PivotFields object) in the PivotTable report. Read-only.
Public method PivotSelect Selects part of a PivotTable report.
Public method PivotTableWizard Creates a PivotTable object. This method doesn’t display the PivotTable Wizard. This method isn’t available for OLE DB data sources. Use the Add method to add a PivotTable cache, and then create a PivotTable report based on the cache.
Public method RefreshDataSourceValues Retrieves the current values from the data source for all edited cells in a PivotTable report that is in writeback mode.
Public method RefreshTable Refreshes the PivotTable report from the source data. Returns True if it’s successful.
Public method RepeatAllLabels Sets whether to repeat item labels for all PivotFields in the specified PivotTable.
Public method RowAxisLayout This method is used for simultaneously setting layout options for all existing PivotFields.
Public method ShowPages Creates a new PivotTable report for each item in the page field. Each new report is created on a new worksheet.
Public method SubtotalLocation This method changes the subtotal location for all existing PivotFields. Changing the subtotal location has an immediate visual effect only for fields in outline form, but it will be set for fields in tabular form as well.
Public method Update Updates the link or PivotTable report.

Top

See Also

Reference

PivotTable Interface

Microsoft.Office.Interop.Excel Namespace