Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making Visible on a Pivot table

Status
Not open for further replies.

timely

Programmer
Jun 7, 2001
64
US
I am working on vba to setup a pivot table but only what values of certain things to show.

Currently I have:
With ActiveSheet.PivotTables("PivotTable4").PivotFields("Pkg")
.PivotItems("AUTO03F").Visible = False
.PivotItems("AUTO20F").Visible = False
.PivotItems("(blank)").Visible = False
End With

I know I can also make each item true. The problem is that I do not always know what all the Items will be I want to make it so that only certain items will be true without having to know what all the other items will be in the pivot table.

Any one know what I would use to first make all items visible false and then make only the ones I want to see true?

Thanks
Tim
 
Tim,

What? Is this a mindreading game? ;-)

The rules are, you MUST have at least ONE pivot item visible.

Skip,

[glasses] [red]Be advised:[/red] When you ignite a firecracker in a bowl of vanilla, chocolate & strawberry ice cream, you get...
Neopolitan Blownapart! [tongue]


 
A good place to start:-


Regards
Ken..............

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
Skip,

I did not explain very well. I know that one has to be showing and I want to have two certain ones show. I just do not know all the ones that will be needed to be hidden. So I was looking for a way to show what I want seen in the item list without having to know the other ones but I all except the two hidden.

Ken,

Thanks, I will see if I can integrate some of that to my goal.

Thanks,
Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top