+ Reply to Thread
Results 1 to 4 of 4

How to sort listobject in protected worksheet

  1. #1
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    How to sort listobject in protected worksheet

    Hi,

    I have a listobject with several columns and I am using the following code to protect the sheet:

    Please Login or Register  to view this content.
    The sorting is not working. A message appears "the cell or chart that you are trying to change is protected and therefore read-only"

    what seems to be the problem?

    Regards,
    Elio Fernandes
    Attached Files Attached Files
    Last edited by efernandes67; 06-09-2012 at 05:25 AM.

  2. #2
    Registered User
    Join Date
    05-16-2012
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: How to sort listobject in protected worksheet

    After AllowFiltering:=True add: ", UserInterfaceOnly:=True" (w/o the " marks)

  3. #3
    Registered User
    Join Date
    01-01-2005
    MS-Off Ver
    2007
    Posts
    368

    Re: How to sort listobject in protected worksheet

    Hi Joe,

    I did what you told me but the sorting does not work. The filtering works. I attached a file so that you can see and tell me what is wrong. I put the code above in the worksheet.

  4. #4
    Registered User
    Join Date
    05-16-2012
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: How to sort listobject in protected worksheet

    Sorry, I didn't understand what you were trying to do until I looked at your workbook. The command I gave you would allow a macro to do the sorting, but not a user. To allow a user to sort, you must unlock all the cells in the list object before you protect the sheet.

+ 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