Setting Pivot Table Page Field Names using VBA

R

Ron McCormick

I'm trying to set Pivot table field names with the
following code.

For Each Region In Regions
 
T

Tom Ogilvy

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.
 
Top