http://www.contextures.com/xlPivot05.html 

 
http://www.ozgrid.com/VBA/pivot-table-fields.htm 
or this idea

For Each pf In pt.DataFields
pf.Orientation = xlHidden
Next pf 

Don Guillett
SalesAid Software
dguille...@gmail.com

From: Kiran Kancharla 
Sent: Sunday, February 26, 2012 12:15 PM
To: excel-macros@googlegroups.com 
Subject: $$Excel-Macros$$ Pivot uncheck All


Hi All, 

Below is the Macro I have recorded for unchecking the Pivot Table.

    ActiveSheet.PivotTables("PivotTable2").PivotFields("Month").CurrentPage = 
"(All)"

    With ActiveSheet.PivotTables("PivotTable2").PivotFields("Month")
        .PivotItems("Jan").Visible = False
        .PivotItems("Feb").Visible = True
    End With

In the real case I have More than the 500 points to uncheck. 

I need macro to uncheck all selected in Pivot table and select only 1.

I have a separate macro to Select the required point. 

Please help.

I cannot attach the sheet as it has client information.
-- 

Thanks & Regards,
Kiran
-- 
FORUM RULES (986+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
 
------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to