Results 1 to 4 of 4

Excel 2007 : Protected Sheet Pivot Table

Threaded View

  1. #1
    Registered User
    Join Date
    09-21-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2013
    Posts
    25

    Exclamation Protected Sheet Pivot Table

    Hi all,

    I'm relitevly new to including macro's into my worksheets. I have a sheet with a pivot table in it that I want to be able to let users select multiple dates while having the rest of the sheet protected. I have worked out the below macro that refreshes the sheet while protected but then also locks the pivot table no dates can't be selected from the filter tab on the table. Can anyone give me the bit of code that would keep the pivot table usable?

    Sub Refresh()
         
        ActiveSheet.Unprotect "Password"
        ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
        ActiveSheet.Protect "Password"
    End Sub
    Last edited by Geogeo; 09-26-2011 at 08:54 AM. Reason: Solved
    rate the advice you get click on the star

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