+ Reply to Thread
Results 1 to 3 of 3

Protected Pivot Table Error on Open

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Protected Pivot Table Error on Open

    I have a workbook with the following macros:

    The First macro password protects every sheet when the workbook is closed.
    Please Login or Register  to view this content.
    The second macro allows a user to unprotect all sheets at once.
    Please Login or Register  to view this content.
    I'm in Excel 2007. For every worksheet that has a pivot table, I receive a messagebox that says "Cannot edit PivotTable on protected sheet." when I open the workbook.

    What's the best way to deal with this error?

  2. #2
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387
    I understand this has to do with the refresh on open feature of pivot tables.

    Is there a way to unprotect, refresh, then reprotect?

    The only way I can think of is to turn off the refresh on open feature and then call each pivot table to refresh, which would be fine except that there will likely be new pivot tables created and they'll default in with the refresh on open checked.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Why not turn off refresh on open > unprotect the sheet > then turn it back on

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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