+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Can't sort on protected sheet

Hybrid View

mcmuney Can't sort on protected sheet 11-30-2010, 03:11 PM
TMS Re: Can't sort on protected... 11-30-2010, 03:16 PM
mcmuney Re: Can't sort on protected... 11-30-2010, 03:31 PM
TMS Re: Can't sort on protected... 11-30-2010, 04:57 PM
mcmuney Re: Can't sort on protected... 12-01-2010, 02:03 PM
TMS Re: Can't sort on protected... 12-01-2010, 03:35 PM
royUK Re: Can't sort on protected... 12-01-2010, 03:52 PM
  1. #1
    Forum Contributor
    Join Date
    07-16-2008
    Location
    USA
    Posts
    142

    Can't sort on protected sheet

    I've protected the header of my sheet and unlocked all the data rows and protected the sheet with both sort and auto filter options checked. But when I try to sort, I get the protection dialogue box. What am I missing?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,163

    Re: Can't sort on protected sheet

    Can you post a sample workbook? Ideally, the real thing but with test data and which demonstrates the problem.

    I take it you are trying to sort manually, not through VBA?

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    07-16-2008
    Location
    USA
    Posts
    142

    Re: Can't sort on protected sheet

    Yes, trying to sort using auto filter and manually. See attached test file.
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,163

    Re: Can't sort on protected sheet

    Well, there's good news and bad news. The good news is you have choices.

    The bad news is that, if you want to retain the locked header cells, the solution is a VBA macro that unprotects the sheet, does the sort and re-protects the sheet.

    Or, if you unlock the locked header cells, you can indeed sort your protected worksheet.

    Bit of a let down really but I'm sure there's some logic behind it ... though, what it is, I do not know.

    Regards

  5. #5
    Forum Contributor
    Join Date
    07-16-2008
    Location
    USA
    Posts
    142

    Re: Can't sort on protected sheet

    I'm able to use a VBA macro to sort without unprotecting and reprotecting it. This seems to be a bug as there's an option to allow for sorting when protecting a sheet.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,163

    Re: Can't sort on protected sheet

    Interesting but probably not surprising ;-)

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Can't sort on protected sheet

    Try setting the sort options manually before protecting
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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