Results 1 to 8 of 8
  1. #1
    New Lounger
    Join Date
    Feb 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    EXCEL question - protected sheets & sorting/filter (97)

    I have a spreadsheet that contains data across about 20 columns and 500 rows. Other people need access to input data into two of the columns but I do not wish them to access/change anything else on the spreadsheet. The ability to sort or filter the data would be very useful to these people doing the input. However, with the worksheet protected, sort and filter are not possible.

    Does anyone have a solution?

    Thanks!

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: EXCEL question - protected sheets & sorting/filter (97)

    You can write a macro that unprotects the sheet and does the sort and then protects it again.
    Legare Coleman

  3. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: EXCEL question - protected sheets & sorting/filter (97)

    It is not foolproof, but you can also lock a sheet using Data, Validation.

    - define this name:

    Name:
    Locked
    Refers To:
    =False

    Now select all cells of the sheet and choose Data, Validation.
    Choose Custom from the first dropdown and enter this formula into the bottom box:
    =(Locked=false)

    Now if you want to lock the sheet, change the "refers to" content of the name "Locked" to
    =True

    Now try to filter and try to change a cell.

    To exclude cells from the "protection", select them, choose data validation and click "clear all".
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  4. #4
    Star Lounger
    Join Date
    Aug 2002
    Location
    Michigan, USA
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: EXCEL question - protected sheets & sorting/filter (97)

    This sound interesting. But, what do you mean by "define this name." What am I supposed to do here?

  5. #5
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: EXCEL question - protected sheets & sorting/filter (97)

    From the menu, choose Insert, Name, Define. Then fill in the boxes as I described in my previous post.
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  6. #6
    Star Lounger
    Join Date
    Aug 2002
    Location
    Michigan, USA
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: EXCEL question - protected sheets & sorting/filter (97)

    Thanks for the details. Umm, does this solution only work with Access 97? I cannot get the cells to lock this way and I'm using Excel 2000. Either it's not compatible with Excel 2000, or I am still doing something wrong.

  7. #7
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: EXCEL question - protected sheets & sorting/filter (97)

    In the Data, Validation dialog, uncheck the "Ignore blank" checkbox.
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  8. #8
    Star Lounger
    Join Date
    Aug 2002
    Location
    Michigan, USA
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: EXCEL question - protected sheets & sorting/filter (97)

    Aha - that was it! This is a very clever solution - thank you very much for sharing this with me, as it now does exactly what I need it to do. Thanks again!!!

Posting Permissions

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