+ Reply to Thread
Results 1 to 4 of 4

Macro to unprotect refresh protect along multiple worksheets

  1. #1
    Registered User
    Join Date
    03-10-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    42

    Macro to unprotect refresh protect along multiple worksheets

    Hi all,

    I have a report that has pivot tables which update from Microsoft Dynamix (a database program)... Layout as follows:

    Sheet 1: No pivottables, only charts
    Sheet 2: 2 pivottables (that pull info from hidden sheets 5 & 6)
    Sheet 3: 2 pivottables (that pull info from hidden sheets 5 & 6)
    Sheet 4: 1 pivottable (that pulls data from Microsoft Dynamix)

    I tried doing an auto_open macro to refresh all of the data, but it doesn't seem to work as i also need the report to remain protected once updated... I used this:

    Please Login or Register  to view this content.
    Can anyone help with creating a macro that will unprotect all sheets, then refresh all pivottables and data, then reprotect all sheets?
    Last edited by kfryar; 08-04-2014 at 09:27 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,859

    Re: Macro to unprotect refresh protect along multiple worksheets

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-10-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Macro to unprotect refresh protect along multiple worksheets

    Thanks... done.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,859

    Re: Macro to unprotect refresh protect along multiple worksheets


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 03-12-2013, 02:33 AM
  2. Replies: 1
    Last Post: 09-25-2012, 01:30 AM
  3. Re: Using Macro to protect and unprotect worksheets
    By simpson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2010, 02:11 AM
  4. Using Macro to protect and unprotect worksheets
    By jfoote in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2008, 04:43 PM
  5. [SOLVED] Protect/Unprotect Multiple Worksheets
    By Katherine R in forum Excel General
    Replies: 2
    Last Post: 05-09-2006, 11:15 AM

Tags for this Thread

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