This topic has not yet been rated - Rate this topic

PivotTable.GetData Method

Office 2007
Returns the value for the a data filed in a PivotTable.

Syntax

expression.GetData(Name)

expression   A variable that represents a PivotTable object.

Parameters

NameRequired/OptionalData TypeDescription
NameRequiredStringDescribes a single cell in the PivotTable report, using syntax similar to the PivotSelect method or the PivotTable report references in calculated item formulas.

Return Value
Double

Example

This example shows the sum of revenues for apples in January (Data field = Revenue, Product = Apples, Month = January).

Visual Basic for Applications
Msgbox ActiveSheet.PivotTables(1) _
    .GetData("'Sum of Revenue' Apples January")



Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.