Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2014, 08:15 AM
mbesspiata mbesspiata is offline Selecting/deselecting items in pivot table Windows 7 64bit Selecting/deselecting items in pivot table Office 2010 64bit
Advanced Beginner
Selecting/deselecting items in pivot table
 
Join Date: Mar 2011
Location: Virginia
Posts: 57
mbesspiata is on a distinguished road
Default Selecting/deselecting items in pivot table

I have a pivot table that begins with 145 vendor id numbers. I need to have the table end up only showing five vendor id numbers and their appropriate data.
I tried using the vba below to do this but it did not give me just the five. It still gave me all the numbers.
What do I need to do to get only the five listed in my vba below? I want the 139 others to not show up.

With ActiveSheet.PivotTables("PivotTable1").PivotFields ("Vndr Id Cd")
On Error Resume Next
.PivotItems("2304013").Visible = True
.PivotItems("2706002").Visible = True
.PivotItems("2706003").Visible = True
.PivotItems("4601504").Visible = True
.PivotItems("5201064").Visible = True
On Error GoTo 0


End With


Mike
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Pivot Table CubeField Enable multiple items Wries Excel Programming 0 03-13-2014 09:56 AM
Pivot Table uhlersa Excel 0 10-15-2012 12:01 PM
Pivot table help TishyMouse Excel 2 04-27-2012 10:19 AM
Selecting/deselecting items in pivot table pivot table aliasadi_07 Excel 1 03-11-2012 12:49 AM
Selecting/deselecting items in pivot table Help with a pivot table please! natsha Excel 1 02-16-2012 12:41 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft