+ Reply to Thread
Results 1 to 2 of 2

Sheet protection with autofilter disabled

  1. #1
    Valued Forum Contributor
    Join Date
    08-10-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    721

    Sheet protection with autofilter disabled

    I have a workbook with many sheets to which I apply this sheet protection:

    Please Login or Register  to view this content.
    The primary goal of this was to stop people from being able to filter as it knackers my spreadsheet but also basic security so they cant delete coloms or do anything silly.

    My problem is that though the code works very well, I have many other macros that rely on the autofilter to calculate things. can my code be amended to allow other macros to use the autofilter function?

    Possibly I could have a warning message pop up if the row 16 were highlighted (as a workaround)?
    Last edited by nickmax1; 09-18-2012 at 10:25 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-10-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    721

    Re: Sheet protection with autofilter disabled

    i have managed to come up with a solution. I created another module that unlocked all sheets, and simply used the CALL command to unlock all sheets when a macro that relied upon autofilters needed them, and at the end of the macro call upon the "locking" macro above to disable autofilter again.

+ 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