הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Returns the value for the data filed in a PivotTable.
Syntax
expression.GetData (Name)
expression A variable that represents a PivotTable object.
Parameters
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| Name | Required | String | Describes 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).
Msgbox ActiveSheet.PivotTables(1) _
.GetData("'Sum of Revenue' Apples January")
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.