Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Aug 2005
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    protecting spreadsheet (2000/2003)

    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?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: protecting spreadsheet (2000/2003)

    You can use code like this:

    With ActiveSheet ' or Worksheets("MySheet")
    .Range("A21,F27").Locked = False
    .Protect
    .EnableSelection = xlUnlockedCells
    End With

  3. #3
    Lounger
    Join Date
    Aug 2005
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: protecting spreadsheet (2000/2003)

    Thanks Hans for the quick response.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •