+ Reply to Thread
Results 1 to 7 of 7

Protected Sheet - Allow Pivot Filter, but not Field List

  1. #1
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    361

    Protected Sheet - Allow Pivot Filter, but not Field List

    Dear all

    I would like to protect my worksheet, while still allowing the user to use filters in Pivot Tables.
    However, I do not want to allow them to change the fields.

    Is there a way to do this? The default "Protect Sheet" does not offer this option.

    Thanks
    FD

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: Protected Sheet - Allow Pivot Filter, but not Field List

    Quote Originally Posted by FallingDown View Post
    I would like to protect my worksheet, while still allowing the user to use filters in Pivot Tables.
    However, I do not want to allow them to change the fields.

    Is there a way to do this? The default "Protect Sheet" does not offer this option.
    1. From the menu bar select Review> Protect Sheet
    2. Under Allow all users of this workbook to:
    - uncheck: Select locked cells
    - uncheck: Select Unlocked cells
    - check: Use AutoFilter
    - check: Use PivotTable & PivotChart
    3. Set & confirm your password

  3. #3
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    361

    Re: Protected Sheet - Allow Pivot Filter, but not Field List

    Hi Syrkrasi

    Many thanks for your reply. However, as already described in my post, this does NOT work.
    Having Pivot Table checked, still allows the user to move around the fields - I do not want that.

    Plus the auto-filter has nothing to do with the pivot filters.

    Do you see any other approach?

    Thanks
    FD

  4. #4
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: Protected Sheet - Allow Pivot Filter, but not Field List

    Here is what i was able to find

    try this code
    Please Login or Register  to view this content.
    And your right that the Autofilter doesn't do anything for your request; however, you should still use the following:

    1. From the menu bar select Review> Protect Sheet
    2. Under Allow all users of this workbook to:
    - uncheck: Select locked cells
    - uncheck: Select Unlocked cells
    - check: Use PivotTable & PivotChart
    3. Set & confirm your password

    See attachment
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    361

    Re: Protected Sheet - Allow Pivot Filter, but not Field List

    Hi Syrkrasi

    Yeah, I know the basic functions ;-) But thanks appreciated anyway.

    I thought of coding this myself, but tried to avoid (more code then I already use).
    So I figured I'd check if I can use a built-in function I missed.

    Cheers
    FD

  6. #6
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: Protected Sheet - Allow Pivot Filter, but not Field List

    I am unaware of any other built-in function that will allow you to manually turn-off that setting.
    From this standpoint - using VBA seems to be the only solution in achieving your request.

  7. #7
    Registered User
    Join Date
    06-29-2022
    Location
    Trinidad
    MS-Off Ver
    Microsoft Office 2010
    Posts
    1

    Re: Protected Sheet - Allow Pivot Filter, but not Field List

    Some users say that the suggestion below does not work:
    1. From the menu bar select Review> Protect Sheet
    2. Under Allow all users of this workbook to:
    - uncheck: Select locked cells
    - uncheck: Select Unlocked cells
    - check: Use AutoFilter
    - check: Use PivotTable & PivotChart
    3. Set & confirm your password

    It will NOT work if when you protect the sheet you have a cell selected that is within the Pivot Table. Select a cell outside of the Pivot Table before you protect the sheet.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Similar Threads

  1. Pivot chart field buttons don't work when sheet is protected
    By Jerbinator in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2020, 04:04 PM
  2. Replies: 0
    Last Post: 07-14-2016, 03:51 PM
  3. Loop through Pivot Table Filter field from a List and create pdf
    By Mysore in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2016, 10:13 PM
  4. Replies: 0
    Last Post: 03-20-2015, 11:39 AM
  5. Pivot Filter based off drop down cell will not update in protected sheet
    By THAT guy 112073 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-30-2014, 01:03 PM
  6. Locking only one page field (report filters) of a pivot table in a protected sheet???
    By kzahariev in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2013, 08:48 AM
  7. [SOLVED] How to set a 'Date Filter' on a field in the 'Report Filter' section of a Pivot Table?
    By Rhino_dance in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 03-28-2013, 11:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1