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: 16
Default PivotTable & PivotFields/VBA

I posted this in the General Questions section and then thought it probably
better belongs in the programming section:

I am trying to complete some VBA code that will allow me change a filter on a
pivottable. The code I am using is as follows:

"ActiveSheet.PivotTables("PivotTable3").PivotField s("ACADEMIC_YEAR"). _
ClearValueFilters
With ActiveSheet.PivotTables("PivotTable3").PivotFields ("ACADEMIC_YEAR")
.PivotItems(YrF).Visible = True
End With"

The code properly checks to correct item based on my variable in the With
statement. My problem is the the ClearValueFilters method before it is not
working. I am trying to clear any PivotItems that are currently visible w/o
have to hard card each one current visible. I though the the
ClearValueFilters method would do this for me, but it actuall makes all of
the PivotItems visible. Any suggestions.


 
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
unable to get the pivotfields property of the pivottable class dhstein Excel Discussion (Misc queries) 0 January 6th 10 02:27 AM
PivotTable - PivotFields VBA Hutch Excel Discussion (Misc queries) 0 June 18th 08 09:03 PM
Unable to get the PivotFields property of the PivotTable Class Karl Excel Programming 2 July 25th 06 07:15 PM
Total in a PivotTable PivotFields FlavioYaura Excel Programming 1 October 29th 04 12:33 PM
PivotFields Neal Excel Programming 2 September 20th 04 07:23 PM


All times are GMT +1. The time now is 09:07 AM.

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"