April 2006
Beginner
1114 pages
98h 16m
English
pivottable.GetData(Name)
Retrieves a value from the pivot table’s data area.
|
Argument |
Settings |
|---|---|
|
|
The column and row names that describe the data item to return |
The following code returns the average sales rank from the pivot table created earlier (see Figure 13-7 for an illustration of the pivot table):
Sub GetPivotTableData1( )
Dim pt As PivotTable
' Run CreatePivotTable to create this pivot table.
Set pt = ActiveSheet.PivotTables(1)
' Display data in Immediate window.
Debug.Print pt.GetData(" 'Essential SharePoint' 'Average of SalesRank'")
End SubRead now
Unlock full access