Filtering in pivot need help with deselecting in report filter

999HelpPlease

New Member
Joined
Jul 16, 2014
Messages
35
This is my current program:

ActiveSheet.PivotTables("Prosthetics").PivotFields( _
"Otto Bock Strategic Business Segment B").CurrentPage = "(All)"
With ActiveSheet.PivotTables("Prosthetics").PivotFields( _
"Otto Bock Strategic Business Segment B")
.PivotItems("SBS_B_63").Visible = False
.PivotItems("SBS_B_64").Visible = False
End With
ActiveSheet.PivotTables("Prosthetics").PivotFields( _
"Otto Bock Strategic Business Segment B").EnableMultiplePageItems = True
ActiveSheet.PivotTables("Prosthetics").PivotFields("Header Groups"). _
CurrentPage = "(All)"
With ActiveSheet.PivotTables("Prosthetics").PivotFields("Header Groups")
.PivotItems("SE_03").Visible = False
.PivotItems("SE_09").Visible = False
.PivotItems("SE_16").Visible = False
.PivotItems("SE_17").Visible = False
End With
ActiveSheet.PivotTables("PivotTable4").PivotFields("Header Groups"). _
EnableMultiplePageItems = True
End Sub

When I run it I get a Run_time erro '1004': Unable to get the PivotTables property of the Worksheet class.

What I want to do is select all my options so I can deselect some specific groups that I don't want added into my pivot.

What step am I missing?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,215,580
Messages
6,125,654
Members
449,245
Latest member
PatrickL

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top