Name
pivottable.PivotSelect(Name, [Mode], [UseStandardName])
Synopsis
Selects part of a pivot table.
|
Argument |
Settings |
|---|---|
|
|
The name of the field or item to select. |
|
|
An |
|
|
True uses U.S. English formats for numbers, currency, dates, and times within the |
The following code selects the rows for Essential SharePoint from the pivot table created earlier (see Figure 13-7 for an illustration of the pivot table):
Sub SelectPivotItem( )
Dim pt As PivotTable
' Run CreatePivotTable to create this pivot table.
Set pt = ActiveSheet.PivotTables(1)
' Select one item.
pt.PivotSelect "ProductName[Essential SharePoint]"
' This line is equivalent to preceding line:
'pt.PivotSelection = "ProductName[Essential SharePoint]"
End SubBecome an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access