PivotTable PivotTable PivotTable Interface

Definition

Represents a PivotTable report on a worksheet. The PivotTable object is a member of the PivotTables collection. The PivotTables collection contains all the PivotTable objects on a single worksheet.

public interface class PivotTable
[System.Runtime.InteropServices.Guid("00020872-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface PivotTable
Public Interface PivotTable
Attributes

Remarks

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 then click Record New Macro.

Properties

_Default _Default _Default

Reserved for internal use.

ActiveFilters ActiveFilters ActiveFilters

Indicates the currently active filter in the specified PivotTable. Read-only.

Allocation Allocation Allocation

Gets or sets whether to run an UPDATE CUBE statement for each cell is edited, or only when the user chooses to calculate changes when performing what-if analysis on a PivotTable based on an OLAP data source.

AllocationMethod AllocationMethod AllocationMethod

Gets or sets what method to use to allocate values when performing what-if analysis on a PivotTable report based on an OLAP data source.

AllocationValue AllocationValue AllocationValue

Gets or sets what value to allocate when performing what-if analysis on a PivotTable report based on an OLAP data source.

AllocationWeightExpression AllocationWeightExpression AllocationWeightExpression

Gets or sets the MDX weight expression to use when performing what-if analysis on a PivotTable report based on an OLAP data source.

AllowMultipleFilters AllowMultipleFilters AllowMultipleFilters

Sets or retrieves a value that indicates whether a PivotField can have multiple filters applied to it at the same time. Read/write.

AlternativeText AlternativeText AlternativeText

Gets or sets the descriptive (alternative) text string for the specified PivotTable.

Application Application Application

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

CacheIndex CacheIndex CacheIndex

Returns or sets the index number of the PivotTable cache. Read/write Integer.

CalculatedMembers CalculatedMembers CalculatedMembers

Returns a CalculatedMembers collection representing all the calculated members and calculated measures for an OLAP PivotTable.

CalculatedMembersInFilters CalculatedMembersInFilters CalculatedMembersInFilters

Gets or sets whether to evaluate calculated members from OLAP servers in filters.

ChangeList ChangeList ChangeList

Gets the PivotTableChangeList collection that represents the list of changes that have been made to the specified PivotTable based on an OLAP data source.

ColumnFields[Object] ColumnFields[Object] ColumnFields[Object]

Returns an object that represents either a single PivotTable field (a PivotField object) or a collection of all the fields (a PivotFields object) that are currently shown as column fields. Read-only.

ColumnGrand ColumnGrand ColumnGrand

True if the PivotTable report shows grand totals for columns. Read/write Boolean.

ColumnRange ColumnRange ColumnRange

Returns a Range object that represents the range that contains the column area in the PivotTable report. Read-only.

CompactLayoutColumnHeader CompactLayoutColumnHeader CompactLayoutColumnHeader

Specifies the caption that is displayed in the column header of a PivotTable when in compact row layout form. Read/write.

CompactLayoutRowHeader CompactLayoutRowHeader CompactLayoutRowHeader

Specifies the caption that is displayed in the row header of a PivotTable when in compact row layout form. Read/write.

CompactRowIndent CompactRowIndent CompactRowIndent

Returns or sets the indent increment for PivotItems when compact row layout form is turned on. Read/write.

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.

CubeFields CubeFields CubeFields

Returns the CubeFields collection. Each CubeField object contains the properties of the cube field element. Read-only.

DataBodyRange DataBodyRange DataBodyRange

Returns a Range object that represents the range that contains the data area in the list between the header row and the insert row. Read-only.

DataFields[Object] DataFields[Object] DataFields[Object]

Returns an object that represents either a single PivotTable field (a PivotField object) or a collection of all the fields (a PivotFields object) that are currently shown as data fields. Read-only.

DataLabelRange DataLabelRange DataLabelRange

Returns a Range object that represents the range that contains the labels for the data fields in the PivotTable report. Read-only.

DataPivotField DataPivotField DataPivotField

Returns a PivotField object that represents all the data fields in a PivotTable. Read-only.

DisplayContextTooltips DisplayContextTooltips DisplayContextTooltips

Controls whether or not tooltips are displayed for PivotTable cells. Read/write.

DisplayEmptyColumn DisplayEmptyColumn DisplayEmptyColumn

Returns True when the non-empty MDX keyword is included in the query to the OLAP provider for the value axis. The OLAP provider will not return empty columns in the result set. Returns False when the non-empty keyword is omitted. Read/write Boolean.

DisplayEmptyRow DisplayEmptyRow DisplayEmptyRow

Returns True when the non-empty MDX keyword is included in the query to the OLAP provider for the category axis. The OLAP provider will not return empty rows in the result set. Returns False when the non-empty keyword is omitted. Read/write Boolean.

DisplayErrorString DisplayErrorString DisplayErrorString

True if the PivotTable report displays a custom error string in cells that contain errors. The default value is False. Read/write Boolean.

DisplayFieldCaptions DisplayFieldCaptions DisplayFieldCaptions

Controls whether or not filter buttons and PivotField captions for rows and columns are displayed in the grid. Read/write.

DisplayImmediateItems DisplayImmediateItems DisplayImmediateItems

Returns or sets a Boolean that indicates whether items in the row and column areas are visible when the data area of the PivotTable is empty. Set this property to False to hide the items in the row and column areas when the data area of the PivotTable is empty. The default value is True.

DisplayMemberPropertyTooltips DisplayMemberPropertyTooltips DisplayMemberPropertyTooltips

Controls whether or not to display member properties in tooltips. Read/write.

DisplayNullString DisplayNullString DisplayNullString

True if the PivotTable report displays a custom string in cells that contain null values. The default value is True. Read/write Boolean.

EnableDataValueEditing EnableDataValueEditing EnableDataValueEditing

True to disable the alert for when the user overwrites values in the data area of the PivotTable. True also allows the user to change data values that previously could not be changed. The default value is False. Read/write Boolean.

EnableDrilldown EnableDrilldown EnableDrilldown

True if drilldown is enabled. The default value is True. Read/write Boolean.

EnableFieldDialog EnableFieldDialog EnableFieldDialog

True if the PivotTable Field dialog box is available when the user double-clicks the PivotTable field. The default value is True. Read/write Boolean.

EnableFieldList EnableFieldList EnableFieldList

False to disable the ability to display the field list for the PivotTable. If the field list was already being displayed it disappears. The default value is True. Read/write Boolean.

EnableWizard EnableWizard EnableWizard

True if the PivotTable Wizard is available. The default value is True. Read/write Boolean.

EnableWriteback EnableWriteback EnableWriteback

Gets or sets whether writing back to the data source is enabled for the specified PivotTable.

ErrorString ErrorString ErrorString

Returns or sets the string displayed in cells that contain errors when the DisplayErrorString property is True. The default value is an empty string (""). Read/write String.

FieldListSortAscending FieldListSortAscending FieldListSortAscending

Controls the sort order of fields in the PivotTable Field List. Read/write.

GrandTotalName GrandTotalName GrandTotalName

Returns or sets the text string label that is displayed in the grand total column or row heading in the specified PivotTable report. The default value is the string "Grand Total". Read/write String.

HasAutoFormat HasAutoFormat HasAutoFormat

True if the PivotTable report is automatically formatted when it’s refreshed or when fields are moved. Read/write Boolean.

Hidden Hidden Hidden

Checks whether the PivotTable exists at the worksheet level. Boolean (bool in C#). Read-only

HiddenFields[Object] HiddenFields[Object] HiddenFields[Object]

Returns an object that represents either a single PivotTable field (a PivotField object) or a collection of all the fields (a PivotFields object) that are currently not shown as row, column, page, or data fields. Read-only.

InGridDropZones InGridDropZones InGridDropZones

This property is used to toggle in-grid drop zones for a PivotTable object. In some cases, it also affects the layout of the PivotTable. Read/write.

InnerDetail InnerDetail InnerDetail

Returns or sets the name of the field that will be shown as detail when the ShowDetail property is True for the innermost row or column field. Read/write String.

LayoutRowDefault LayoutRowDefault LayoutRowDefault

This property specifies the layout settings for PivotFields when they are added to the PivotTable for the first time. Read/write.

Location Location Location

Gets or sets a String that represents the top-left cell in the body of the specified PivotTable. Read/write.

ManualUpdate ManualUpdate ManualUpdate

True if the PivotTable report is recalculated only at the user's request. The default value is False. Read/write Boolean.

MDX MDX MDX

Returns a String indicating the MDX (Multidimensional Expression) that would be sent to the provider to populate the current PivotTable view. Read-only.

MergeLabels MergeLabels MergeLabels

True if the specified PivotTable report’s outer-row item, column item, subtotal, and grand total labels use merged cells. Read/write Boolean.

Name Name Name

Returns or sets the name of the object. Read/write String.

NullString NullString NullString

Returns or sets the string displayed in cells that contain null values when the DisplayNullString property is True. The default value is an empty string (""). Read/write String.

PageFieldOrder PageFieldOrder PageFieldOrder

Returns or sets the order in which page fields are added to the PivotTable report’s layout. Can be one of the following XlOrder constants: xlDownThenOver or xlOverThenDown. The default constant is xlDownThenOver. Read/write Integer.

PageFields[Object] PageFields[Object] PageFields[Object]

Returns an object that represents either a single PivotTable field (a PivotField object) or a collection of all the fields (a PivotFields object) that are currently showing as page fields. Read-only.

PageFieldStyle PageFieldStyle PageFieldStyle

Returns or sets the style used in the bound page field area. The default value is a null string (no style is applied by default). Read/write String.

PageFieldWrapCount PageFieldWrapCount PageFieldWrapCount

Returns or sets the number of page fields in each column or row in the PivotTable report. Read/write Integer.

PageRange PageRange PageRange

Returns a Range object that represents the range that contains the page area in the PivotTable report. Read-only.

PageRangeCells PageRangeCells PageRangeCells

Returns a Range object that represents only the cells in the specified PivotTable report that contain the page fields and item drop-down lists.

Parent Parent Parent

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

PivotChart PivotChart PivotChart

Returns a Shape object that represents the standalone PivotChart for the specified hidden PivotTable report. Read-only.

PivotColumnAxis PivotColumnAxis PivotColumnAxis

Returns a PivotAxis object representing the entire column axis. Read-only.

PivotFormulas PivotFormulas PivotFormulas

Returns a PivotFormulas object that represents the collection of formulas for the specified PivotTable report. Read-only.

PivotRowAxis PivotRowAxis PivotRowAxis

Returns a PivotAxis object representing the entire row axis. Read-only.

PivotSelection PivotSelection PivotSelection

Returns or sets the PivotTable selection in standard PivotTable report selection format. Read/write String.

PivotSelectionStandard PivotSelectionStandard PivotSelectionStandard

Returns or sets a String indicating the PivotTable selection in standard PivotTable report format using English (United States) settings. Read/write.

PreserveFormatting PreserveFormatting PreserveFormatting

This property is True if formatting is preserved when the report is refreshed or recalculated by operations such as pivoting, sorting, or changing page field items. Read/write Boolean.

PrintDrillIndicators PrintDrillIndicators PrintDrillIndicators

Specifies whether or not drill indicators are printed with the PivotTable. Read/write.

PrintTitles PrintTitles PrintTitles

True if the print titles for the worksheet are set based on the PivotTable report. False if the print titles for the worksheet are used. The default value is False. Read/write Boolean.

RefreshDate RefreshDate RefreshDate

Returns the date on which the PivotTable report was last refreshed. Read-only DateTime.

RefreshName RefreshName RefreshName

Returns the name of the person who last refreshed the PivotTable report data or the PivotTable cache. Read-only String.

RepeatItemsOnEachPrintedPage RepeatItemsOnEachPrintedPage RepeatItemsOnEachPrintedPage

True if row, column, and item labels appear on the first row of each page when the specified PivotTable report is printed. False if labels are printed only on the first page. The default value is True. Read/write Boolean.

RowFields[Object] RowFields[Object] RowFields[Object]

Returns an object that represents either a single field in a PivotTable report (a PivotField object) or a collection of all the fields (a PivotFields object) that are currently showing as row fields. Read-only.

RowGrand RowGrand RowGrand

True if the PivotTable report shows grand totals for rows. Read/write Boolean.

RowRange RowRange RowRange

Returns a Range object that represents the range including the row area on the PivotTable report. Read-only.

SaveData SaveData SaveData

True if data for the PivotTable report is saved with the workbook. False if only the report definition is saved. Read/write Boolean.

SelectionMode SelectionMode SelectionMode

Returns or sets the PivotTable report structured selection mode. Read/write XlPTSelectionMode.

ShowCellBackgroundFromOLAP ShowCellBackgroundFromOLAP ShowCellBackgroundFromOLAP

True if the MDX (Multidimensional Expression) that Microsoft Excel sends to the server includes the BackColor property for each cell in the data area that corresponds to a cell in the Online Analytical Processing (OLAP) data set. The default value is False. Read/write Boolean.

ShowDrillIndicators ShowDrillIndicators ShowDrillIndicators

The ShowDrillIndicators property is used for toggling the display of drill indicators in the PivotTable. Read/write.

ShowPageMultipleItemLabel ShowPageMultipleItemLabel ShowPageMultipleItemLabel

When set to True (default), "(Multiple Items)" will appear in the PivotTable cell on the worksheet whenever items are hidden and an aggregate of non-hidden items is shown in the PivotTable view. Read/write Boolean.

ShowTableStyleColumnHeaders ShowTableStyleColumnHeaders ShowTableStyleColumnHeaders

The ShowTableStyleColumnHeadersproperty is set to True if the coulmn headers should be displayed in the PivotTable. Read/write.

ShowTableStyleColumnStripes ShowTableStyleColumnStripes ShowTableStyleColumnStripes

The Boolean property displays banded columns in which even columns are formatted differently from odd columns. This makes PivotTableseasier to read. Read/write.

ShowTableStyleLastColumn ShowTableStyleLastColumn ShowTableStyleLastColumn

Reserved for internal use.

ShowTableStyleRowHeaders ShowTableStyleRowHeaders ShowTableStyleRowHeaders

The ShowTableStyleRowHeaders property is set to True if the row headers should be displayed in the PivotTable. Read/write.

ShowTableStyleRowStripes ShowTableStyleRowStripes ShowTableStyleRowStripes

The ShowTableStyleRowStripes property displays banded rows in which even rows are formatted differently from odd rows. This makes PivotTables easier to read. Read/write.

ShowValuesRow ShowValuesRow ShowValuesRow

Gets or sets whether the values row is displayed.

Slicers Slicers Slicers

Gets the Slicers collection for the specified PivotTable.

SmallGrid SmallGrid SmallGrid

True if Microsoft Excel uses a grid that’s two cells wide and two cells deep for a newly created PivotTable report. False if Excel uses a blank stencil outline. Read/write Boolean.

SortUsingCustomLists SortUsingCustomLists SortUsingCustomLists

The SortUsingCustomLists property controls whether custom lists are used for sorting items of fields, both initially when the PivotField is initialized and the PivotItems are ordered by their captions; and later when the user applies a sort. Read/write.

SourceData SourceData SourceData

Returns the data source for the PivotTable report. Read-write Object.

SubtotalHiddenPageItems SubtotalHiddenPageItems SubtotalHiddenPageItems

True if hidden page field items in the PivotTable report are included in row and column subtotals, block totals, and grand totals. The default value is False. Read/write Boolean.

Summary Summary Summary

Gets or sets the description associated with the alternative text string for the specified PivotTable.

TableRange1 TableRange1 TableRange1

Returns a Range object that represents the range containing the entire PivotTable report, but doesn’t include page fields. Read-only.

TableRange2 TableRange2 TableRange2

Returns a Range object that represents the range containing the entire PivotTable report, including page fields. Read-only.

TableStyle TableStyle TableStyle

Returns or sets the style used in the body of the PivotTable report. The default value is a null string (no style is applied by default). Read/write String.

TableStyle2 TableStyle2 TableStyle2

The TableStyle2 property specifies the PivotTable style currently applied to the PivotTable. Read/write.

Tag Tag Tag

Returns or sets a string saved with the PivotTable report. Read/write String.

TotalsAnnotation TotalsAnnotation TotalsAnnotation

True if an asterisk (*) is displayed next to each subtotal and grand total value in the specified PivotTable report if the report is based on an OLAP data source. The default value is True. Read/write Boolean.

VacatedStyle VacatedStyle VacatedStyle

Returns or sets the style applied to cells vacated when the PivotTable report is refreshed. The default value is a null string (no style is applied by default). Read/write String.

Value Value Value

The name of the PivotTable report. Read/write String.

Version Version Version

Returns the Microsoft Excel version number. Read-only XlPivotTableVersionList.

ViewCalculatedMembers ViewCalculatedMembers ViewCalculatedMembers

When set to True (default), calculated members for Online Analytical Processing (OLAP) PivotTables can be viewed. Read/write Boolean.

VisibleFields[Object] VisibleFields[Object] VisibleFields[Object]

Returns an object that represents either a single field in a PivotTable report (a PivotField object) or a collection of all the visible fields (a PivotFields object). Visible fields are shown as row, column, page, or data fields. Read-only.

VisualTotals VisualTotals VisualTotals

True (default) to enable Online Analytical Processing (OLAP) PivotTables to recalculate the total after an item has been hidden from view. Read/write Boolean.

VisualTotalsForSets VisualTotalsForSets VisualTotalsForSets

Gets or sets whether to include filtered items in the totals of named sets for the specified PivotTable.

Methods

_PivotSelect(String, XlPTSelectionMode) _PivotSelect(String, XlPTSelectionMode) _PivotSelect(String, XlPTSelectionMode)

Reserved for internal use.

AddDataField(Object, Object, Object) AddDataField(Object, Object, Object) AddDataField(Object, Object, Object)

Adds a data field to a PivotTable report. Returns a PivotField object that represents the new data field.

AddFields(Object, Object, Object, Object) AddFields(Object, Object, Object, Object) AddFields(Object, Object, Object, Object)

Adds row, column, and page fields to a PivotTable report or PivotChart report.

AllocateChanges() AllocateChanges() AllocateChanges()

Performs a writeback operation for all edited cells in a PivotTable report based on an OLAP data source.

CalculatedFields() CalculatedFields() CalculatedFields()

Returns a CalculatedFields collection that represents all the calculated fields in the specified PivotTable report. Read-only.

ChangeConnection(WorkbookConnection) ChangeConnection(WorkbookConnection) ChangeConnection(WorkbookConnection)

Changes the connection of the specified PivotTable.

ChangePivotCache(Object) ChangePivotCache(Object) ChangePivotCache(Object)

Changes the PivotCache of the specified PivotTable.

ClearAllFilters() ClearAllFilters() 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.

ClearTable() ClearTable() 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.

CommitChanges() CommitChanges() CommitChanges()

Performs a commit operation on the data source of a PivotTable report based on an OLAP data source.

ConvertToFormulas(Boolean) ConvertToFormulas(Boolean) ConvertToFormulas(Boolean)

The ConvertToFormulas(Boolean) method is new in 1st_Excel12 and is used for converting a PivotTable to cube formulas.

CreateCubeFile(String, Object, Object, Object, Object) CreateCubeFile(String, Object, Object, Object, Object) CreateCubeFile(String, Object, Object, Object, Object)

Creates a cube file from a PivotTable report connected to an Online Analytical Processing (OLAP) data source.

DiscardChanges() DiscardChanges() DiscardChanges()

Discards all changes in the edited cells of a PivotTable report based on an OLAP data source.

DrillDown(PivotItem, Object) DrillDown(PivotItem, Object) DrillDown(PivotItem, Object)

Enables you to drill down into the data within an OLAP or PowerPivot based cube hierarchy.

DrillTo(PivotItem, CubeField, Object) DrillTo(PivotItem, CubeField, Object) DrillTo(PivotItem, CubeField, Object)

Enables you to drill to a location within an OLAP or PowerPivot based cube hierarchy.

DrillUp(PivotItem, Object, Object) DrillUp(PivotItem, Object, Object) DrillUp(PivotItem, Object, Object)

Enables you to drill up into the data within an OLAP or PowerPivot based cube hierarchy.

Dummy15(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Dummy15(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) Dummy15(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Reserved for internal use.

Dummy2(Object, Object, Object, Object) Dummy2(Object, Object, Object, Object) Dummy2(Object, Object, Object, Object)
Format(XlPivotFormatType) Format(XlPivotFormatType) Format(XlPivotFormatType)

Sets a PivotTable report to one of the predefined indented, nonindented, or cross-tabulated formats.

GetData(String) GetData(String) GetData(String)

Returns data from the specified PivotTable cell.

GetPivotData(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) GetPivotData(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) GetPivotData(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Returns a Range object with information about a data item in a PivotTable report.

ListFormulas() ListFormulas() ListFormulas()

Creates a list of calculated PivotTable items and fields on a separate worksheet.

PivotCache() PivotCache() PivotCache()

Returns a PivotCache object that represents the cache for the specified PivotTable report. Read-only.

PivotFields(Object) PivotFields(Object) PivotFields(Object)

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.

PivotSelect(String, XlPTSelectionMode, Object) PivotSelect(String, XlPTSelectionMode, Object) PivotSelect(String, XlPTSelectionMode, Object)

Selects part of a PivotTable report.

PivotTableWizard(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PivotTableWizard(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PivotTableWizard(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

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(PivotCache, Object, Object, Object, Object) method to add a PivotTable cache, and then create a PivotTable report based on the cache.

PivotValueCell(Object, Object) PivotValueCell(Object, Object) PivotValueCell(Object, Object)

Retrieve the PivotValueCell object for a given PivotTable provided certain row and column indices.

RefreshDataSourceValues() RefreshDataSourceValues() RefreshDataSourceValues()

Retrieves the current values from the data source for all edited cells in a PivotTable report that is in writeback mode.

RefreshTable() RefreshTable() RefreshTable()

Refreshes the PivotTable report from the source data. Returns True if it’s successful.

RepeatAllLabels(XlPivotFieldRepeatLabels) RepeatAllLabels(XlPivotFieldRepeatLabels) RepeatAllLabels(XlPivotFieldRepeatLabels)

Sets whether to repeat item labels for all PivotFields in the specified PivotTable.

RowAxisLayout(XlLayoutRowType) RowAxisLayout(XlLayoutRowType) RowAxisLayout(XlLayoutRowType)

This method is used for simultaneously setting layout options for all existing PivotFields.

ShowPages(Object) ShowPages(Object) ShowPages(Object)

Creates a new PivotTable report for each item in the page field. Each new report is created on a new worksheet.

SubtotalLocation(XlSubtototalLocationType) SubtotalLocation(XlSubtototalLocationType) SubtotalLocation(XlSubtototalLocationType)

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.

Update() Update() Update()

Updates the link or PivotTable report.

Applies to