Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table Field Names bamataylor Excel Discussion (Misc queries) 0 February 3rd 10 04:07 PM
Pivot Table field names don't match Access Joe Excel Discussion (Misc queries) 1 January 17th 09 04:05 AM
Changing a field setting in a pivot table The Rook[_2_] Excel Discussion (Misc queries) 3 September 5th 08 05:29 PM
Setting default pivot table field setting to "sum" Mr. Moose Excel Discussion (Misc queries) 2 December 21st 04 04:43 PM
Pivot table field names somewhat confused Excel Worksheet Functions 1 December 14th 04 03:15 AM


All times are GMT +1. The time now is 12:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"