+ Reply to Thread
Results 1 to 5 of 5

Code for Using Autofilters on Protected Workbooks

  1. #1
    Registered User
    Join Date
    12-06-2007
    Posts
    13

    Code for Using Autofilters on Protected Workbooks

    Hi All

    I was wondering if anyone could help me with something. I have a workbook with 6 different tabs at the bottom that i want to protect. There are Autofilters on each of these sheets and i want to be able to use these without having to unprotect the document.

    I have been informed that there is some code you can put in to enable you to use autofilters in a workbook while it is protected, does anyone know what this might be?

    Many Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    FYI, you can do this without code. When you protect the worksheets you will be prompted to "Allow all users of this worksheet to:" and you can simply check the box "Use AutoFilter".

  3. #3
    Registered User
    Join Date
    12-06-2007
    Posts
    13
    I have a second workbook that i also want to do this for however it has 106 worksheets so i was hoping there was something that can be done to stop me having to do each sheet individually.

  4. #4
    Registered User
    Join Date
    08-13-2008
    Location
    London, UK
    Posts
    8
    Hi Mark

    Yes there is code to do what you want. To perform it on a complete workbook I would use something similar to:
    Please Login or Register  to view this content.
    Code assumes you want it done to all sheets and the data starts in cell A1.

    Laura
    Last edited by dominicb; 08-13-2008 at 08:02 AM.

  5. #5
    Registered User
    Join Date
    12-06-2007
    Posts
    13
    Hi Laura

    I tried this but it didn't work. My header row for the data starts in A4 and i changed it to this but it didn't work. I also tries copying this code into the "ThisWorkbook" section as well as on the sheet as well but neither did anything. Is there something i'm missing?

    Thanks

+ 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