LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Pivot Table Page Field

I'm trying to identify a hidden Pivot table page field. I've looked at the
..hiddenitems and the .visibleitems properties, but it appears that there is
always one .VisibleItem and the remainder are hidden. If I double click on
the page name, I can hide a field there. How do I find that name
programmatically?

I'm trying something like this

Sub FindHidden()

Dim myPivotTable As PivotTable
Dim myPageField As PivotField
Dim myHiddenItem As PivotItem
Dim myVisibleItem As PivotItem

For Each myPivotTable In ActiveSheet.PivotTables
For Each myPageField In myPivotTable.PageFields
For Each myHiddenItem In myPageField.HiddenItems
Debug.Print "Hidden", myPageField.Name, myHiddenItem.Name
Next myHiddenItem
For Each myVisibleItem In myPageField.VisibleItems
Debug.Print "Visible", myPageField.Name, myVisibleItem.Name
Next myVisibleItem
Next myPageField
Next myPivotTable
End Sub

Thanks,
Barb Reinhardt
 
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 Page Field Nate Excel Discussion (Misc queries) 4 December 24th 07 03:11 PM
Page field - pivot table yshridhar Excel Discussion (Misc queries) 0 August 1st 07 04:48 AM
Pivot Table Page Field Muralidhar M S Excel Programming 0 March 21st 07 03:20 PM
Pivot Table Page Field Jimbola Excel Discussion (Misc queries) 0 February 6th 05 09:13 PM
Pivot Table Page Field Todd Huttenstine Excel Programming 2 May 6th 04 04:24 PM


All times are GMT +1. The time now is 04:56 PM.

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

About Us

"It's about Microsoft Excel"