Results 1 to 5 of 5
  1. #1
    Lounger
    Join Date
    Jun 2003
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    autofilter and protection (Excel 2000)

    Is there a way to make the autofilters work when a worksheet is protected?
    Thanks,
    --cat

  2. #2
    Lounger
    Join Date
    Jun 2003
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: autofilter and protection (Excel 2000)

    hmmm ... not till Excel 2002?

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: autofilter and protection (Excel 2000)

    I don't have Excel 2000, but Googling I found that you can enable AutoFilter in a protected sheet using a macro containing the following code:

    With Sheet1 'Or whatever name
    .Protect UserInterfaceOnly:=True
    .EnableAutoFilter = True
    End With

    You must run this code each time the workbook is opened (for example in an AutoOpen or Workbook_Open macro), for the setting is not stored with the workbook.

  4. #4
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: autofilter and protection (Excel 2000)

    This also works with XL97. If MANUALLY protect it first before saving it, you can add a password that is NOT listed in the macro code so when the workbook open macro runs the sheets still have the password.

    Steve

  5. #5
    Lounger
    Join Date
    Jun 2003
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: autofilter and protection (Excel 2000)

    Thanks! That works great.
    --cat

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •