+ Reply to Thread
Results 1 to 5 of 5

Protected sheet and Autofilter?

  1. #1
    Registered User
    Join Date
    08-05-2005
    Posts
    59

    Protected sheet and Autofilter?

    Hi,

    I have preset filters recorded for different status, so at a click of a button anybody can view pending cases which are at a very high status. But the buttons do not function when I protect the sheet, even though I have selected the Enable AutoFilter box.

    Is there any code I can enter to unprotect the sheet then protect the sheet?

    Thanks

  2. #2
    Crowbar via OfficeKB.com
    Guest

    Re: Protected sheet and Autofilter?

    Hi

    Create a button on your sheet and apply this code (you will have to insert
    your autofilter code)

    You will also change sheet1 to the name of the sheet and also password to
    your password


    private sub commandbutton1_click()

    sheets("sheet1").Unprotect = "password"

    Autofilter here

    sheets("sheet1").Protect = "password"

    end sub

    --
    Message posted via OfficeKB.com
    http://www.officekb.com/Uwe/Forums.a...mming/200601/1

  3. #3
    Ron de Bruin
    Guest

    Re: Protected sheet and Autofilter?

    Hi harpscardiff

    First activate Autofilter and then protect your sheet with the filter option checked

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "harpscardiff" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Hi,
    >
    > I have preset filters recorded for different status, so at a click of a
    > button anybody can view pending cases which are at a very high status.
    > But the buttons do not function when I protect the sheet, even though I
    > have selected the Enable AutoFilter box.
    >
    > Is there any code I can enter to unprotect the sheet then protect the
    > sheet?
    >
    > Thanks
    >
    >
    > --
    > harpscardiff
    > ------------------------------------------------------------------------
    > harpscardiff's Profile: http://www.excelforum.com/member.php...o&userid=25960
    > View this thread: http://www.excelforum.com/showthread...hreadid=504982
    >




  4. #4
    Ron de Bruin
    Guest

    Re: Protected sheet and Autofilter?

    If I not understand you correct see
    http://www.contextures.com/xlautofilter03.html#Protect


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "Ron de Bruin" <[email protected]> wrote in message news:[email protected]...
    > Hi harpscardiff
    >
    > First activate Autofilter and then protect your sheet with the filter option checked
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    > "harpscardiff" <[email protected]> wrote in message
    > news:[email protected]...
    >>
    >> Hi,
    >>
    >> I have preset filters recorded for different status, so at a click of a
    >> button anybody can view pending cases which are at a very high status.
    >> But the buttons do not function when I protect the sheet, even though I
    >> have selected the Enable AutoFilter box.
    >>
    >> Is there any code I can enter to unprotect the sheet then protect the
    >> sheet?
    >>
    >> Thanks
    >>
    >>
    >> --
    >> harpscardiff
    >> ------------------------------------------------------------------------
    >> harpscardiff's Profile: http://www.excelforum.com/member.php...o&userid=25960
    >> View this thread: http://www.excelforum.com/showthread...hreadid=504982
    >>

    >
    >




  5. #5
    Registered User
    Join Date
    08-05-2005
    Posts
    59
    I understand what you guys are saying - but I have 4 different filters.

    1 - turns filters on and off
    2 - Shows pending records
    3 - shows TBA records
    4 - shows very high/high pending records.

    I can't turn them all on, then protect.....do I have to amend the code, if so how?

    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