• protecting spreadsheet (2000/2003)

    Author
    Topic
    #423247

    Hello,

    I am creating a vb macro to protect a worksheet except for two cells (a21, f27). I would like the user to be able to only go to those to cells once the worksheet open. Any help would be great?

    Viewing 0 reply threads
    Author
    Replies
    • #967871

      You can use code like this:

      With ActiveSheet ‘ or Worksheets(“MySheet”)
      .Range(“A21,F27”).Locked = False
      .Protect
      .EnableSelection = xlUnlockedCells
      End With

    Viewing 0 reply threads
    Reply To: protecting spreadsheet (2000/2003)

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

    Your information: