• Sorting protected worksheets

    Author
    Topic
    #352035

    Is it possible to sort a protected worksheet in Excel 97? I have protected the worksheet because users keep copying the formula lines all the way down to the bottom of the worksheet and it makes the file REALLY big. So, they can’t do that any more, but they want to be able to sort. Any suggestions?

    Viewing 0 reply threads
    Author
    Replies
    • #510914

      My only thought is that you can do it in VBA, with a subroutine along the lines of

      sub SortSheet()
      worksheets(1).unprotect password:=???
      range(“a1:b500”).sort key1:=range(“a1”)
      worksheets(2).protect password:=???
      end sub

      What I would suggest is that you record the macro, as the recording for a simple job like this will be fine.

      Sing out if you need further help.

      Jon

    Viewing 0 reply threads
    Reply To: Sorting protected worksheets

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: