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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is it possible to make all 'pivot items' TRUE?

Status
Not open for further replies.

t16turbo

Programmer
Mar 22, 2005
315
GB
hi, in my macro, I have a stage where I need to interrogate a pivot table with some of the pivot items set to False.

I need to rest the pivot table afterwards, so that all items are displayed.

is there a way to do this without specifying each item?

PivotItems.("itemname").True, will do it on an individual basis, but I'm hoping for a blanket command!

 


Hi,

Maybe something like this...
Code:
for each pvi in Activesheet.PivotTables(1).PivotFields(1).PivotItems
  pvi.Visible = True
Next



Skip,

[glasses] [red]Be Advised![/red]
A wee deranged psychic may be runnin' around out there!
SMALL MEDUIM @ LARGE[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top