+ Reply to Thread
Results 1 to 5 of 5

Sort on Protected Fields

  1. #1
    PR
    Guest

    Sort on Protected Fields

    I am trying to Sort on Protected Field and unprotected fields, I have a spreadsheet that I have protected from users, but there is a need for them to sort the data range. Because some of the fields are protected the user gets an error when the macro is run to sort.



    Can anyone help


  2. #2
    Tom Ogilvy
    Guest

    Re: Sort on Protected Fields

    ActiveSheet.Unprotect Password:="Monkey"
    ' code that sorts
    Activesheet.Protect Password:="Monkey"


    of couse you will need to protect your project for viewing so they can not
    discover your code.
    --
    regards,
    Tom Ogilvy


    "PR" <paul.raeburn@ntlworld.com> wrote in message
    news:ebh$7iK5FHA.3188@TK2MSFTNGP15.phx.gbl...
    I am trying to Sort on Protected Field and unprotected fields, I have a
    spreadsheet that I have protected from users, but there is a need for them
    to sort the data range. Because some of the fields are protected the user
    gets an error when the macro is run to sort.



    Can anyone help



  3. #3
    Ron de Bruin
    Guest

    Re: Sort on Protected Fields

    Which Excel version ?

    In 2002-2003 this is a option when you protect your sheet
    In 97-2000 you can use a macro to unprotect/Sort/protect

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


    "PR" <paul.raeburn@ntlworld.com> wrote in message news:ebh$7iK5FHA.3188@TK2MSFTNGP15.phx.gbl...
    I am trying to Sort on Protected Field and unprotected fields, I have a spreadsheet that I have protected from users, but there is a need for them to sort the data range. Because some of the fields are protected the user gets an error when the macro is run to sort.



    Can anyone help


  4. #4
    PR
    Guest

    Re: Sort on Protected Fields

    version 2003, I have selected to allow sort, but this still does not work
    "Ron de Bruin" <rondebruin@kabelfoon.nl> wrote in message news:OoBK4wK5FHA.3544@TK2MSFTNGP09.phx.gbl...
    Which Excel version ?

    In 2002-2003 this is a option when you protect your sheet
    In 97-2000 you can use a macro to unprotect/Sort/protect

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


    "PR" <paul.raeburn@ntlworld.com> wrote in message news:ebh$7iK5FHA.3188@TK2MSFTNGP15.phx.gbl...
    I am trying to Sort on Protected Field and unprotected fields, I have a spreadsheet that I have protected from users, but there is a need for them to sort the data range. Because some of the fields are protected the user gets an error when the macro is run to sort.



    Can anyone help


  5. #5
    Ron de Bruin
    Guest

    Re: Sort on Protected Fields

    Yes, Sorry the cells that you want to sort can't be locked
    The macro solution is the best thing for you

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


    "PR" <paul.raeburn@ntlworld.com> wrote in message news:eEJnXzK5FHA.632@TK2MSFTNGP10.phx.gbl...
    version 2003, I have selected to allow sort, but this still does not work
    "Ron de Bruin" <rondebruin@kabelfoon.nl> wrote in message news:OoBK4wK5FHA.3544@TK2MSFTNGP09.phx.gbl...
    Which Excel version ?

    In 2002-2003 this is a option when you protect your sheet
    In 97-2000 you can use a macro to unprotect/Sort/protect

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


    "PR" <paul.raeburn@ntlworld.com> wrote in message news:ebh$7iK5FHA.3188@TK2MSFTNGP15.phx.gbl...
    I am trying to Sort on Protected Field and unprotected fields, I have a spreadsheet that I have protected from users, but there is a need for them to sort the data range. Because some of the fields are protected the user gets an error when the macro is run to sort.



    Can anyone help


+ 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