+ Reply to Thread
Results 1 to 3 of 3

Allow pivot table filters on a protected sheet

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Allow pivot table filters on a protected sheet

    Hello everybody, I have code as below to auto protect my worksheet - however it does not let me apply filters to my pivot tables after the sheet has been protected (I mean select specific dates from the date field etc).

    Can someone let me know what else i need to add to the code so when the workbook is protected but I can still modify my pivot tables

    Code:

    For Each wSheet In Worksheets
            wSheet.Protect Password:="********", _
            DrawingObjects:=True, _
            Contents:=True, _
            Scenarios:=True, _
            UserInterFaceOnly:=True, _
            AllowFiltering:=True

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Allow pivot table filters on a protected sheet

    AllowUsingPivotTables:=True
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: Allow pivot table filters on a protected sheet

    Yes thank you - I had that part but just wasn't adding in the ,_ after the filtering

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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