Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Setting Pivot Table Page Field Names using VBA
I'm trying to set Pivot table field names with the
following code. For Each Region In Regions |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Setting Pivot Table Page Field Names using VBA
And what happens?
Does the variable region hold a legitimate item value from the PivotField "Region"? I have found looping throught the items to find a match and setting the current page to the matched item works when this construct doesn't. -- Regards, Tom Ogilvy "Ron McCormick" wrote in message ... I'm trying to set Pivot table field names with the following code. For Each Region In Regions . . ActiveSheet.PivotTables ("PivotTable_2").PivotSelect "", xlDataAndLabel ActiveSheet.PivotTables("PivotTable_2").PivotField s ("Region").CurrentPage = _ Region |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Pivot Table Field Names | Excel Discussion (Misc queries) | |||
Pivot Table field names don't match | Excel Discussion (Misc queries) | |||
Changing a field setting in a pivot table | Excel Discussion (Misc queries) | |||
Setting default pivot table field setting to "sum" | Excel Discussion (Misc queries) | |||
Pivot table field names | Excel Worksheet Functions |