Protect sheet, but allow pivot filter changes?

muzikman69

New Member
Joined
Jun 19, 2007
Messages
30
I currently have a worksheet which has a pivot running on it; I am trying to set it up so that the user can update the pivot (change filter criteria, refresh, etc) but at the same time certain other cells are protected from editing.

When I protect the sheet (and ensure the pivot area is unlocked) I get the message "Cannot edit PivotTable on protected sheet". Anyone know how to get around this?


Cheers,
Graeme,
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
That was simple... should have just looked down the list a bit more eh.

Thank you very much,

Cheers,
Graeme,
 
Upvote 0
Hi, I have the same problem but in my case I just want the pivot filter options to be enabled. I do not want the user of my sheet to be able to change anything else from the pivot table. Is there a way to code this so that I just enable pivot filter options. Thanks!
 
Upvote 0
I don't know a way to prevent the user from changing the layout of the pivot table, if that's what you mean.
 
Upvote 0
Here is some VB that I use to disable pivot tables in their entirety, you may be able to tweak it to suit your needs. There is also a link to the original site I got the code from,


Cheers,
Graeme,

Code:
           'pivot table tutorial by http://www.contextures.com/xlPivot12.html

                With ActiveSheet.PivotTables(1)
                  .EnableWizard = False
                  .EnableFieldList = False   'Excel 2002+
                            Dim pt As PivotTable
                            Dim pf As PivotField
                            Set pt = ActiveSheet.PivotTables(1)
                              For Each pf In pt.PageFields
                                  pf.EnableItemSelection = False
                              Next pf
                End With
 
Upvote 0

Forum statistics

Threads
1,214,817
Messages
6,121,717
Members
449,050
Latest member
MiguekHeka

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