Protecting Worksheets and Workbooks in Excel
Part two of a three-part series of blogs

If you've ever been annoyed by somebody else changing parts of your Excel workbooks it's a good idea to learn about protection to prevent them from doing it again!

  1. Protecting Worksheets and Workbooks in Microsoft Excel
  2. Protecting Part of a Worksheet (this blog)
  3. Protecting the Structure of a Workbook

Posted by Andrew Gould on 28 February 2012

You need a minimum screen resolution of about 700 pixels width to see our blogs. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

Protecting Part of a Worksheet

If you want to allow people to modify some cells on a worksheet you'll need to unlock those cells before you protect the sheet.

Unlocking Cells

Believe it or not, every cell on a worksheet is locked by default!  The reason you can enter values into cells when you first create a workbook is that the locked setting of a cell only has an effect when the worksheet is protected.

To unlock cells:

  1. Select the cells you want people to be allowed to change.
select cells

On the Inputs sheet we want all of the blue input cells to be unlocked.

 
  1. Right-click on the selected cells and choose Format Cells...
Unlock cells

Use this dialog box to unlock cells.

  1. Select the Protection tab.
  2. Uncheck the Locked checkbox.
  3. Click OK.

The final step is to protect the worksheet as described in the previous part of this blog series.

When you try to edit an unlocked cell you'll find that you can change its value normally.

Changing unlocked cell value

You can change the value of an unlocked cell, but you can't do anything else to it unless you checked the relevant box when you protected the sheet.

 

Unlocking a range of cells works much better when you're using styles in a workbook.  You can unlock all of the cells that use a particular style at the same time without having to select the cells first!

What's Next?

The final part of this blog series shows you how to protect the structure of a workbook to prevent people from deleting, copying, moving and renaming worksheets.

 

This blog has 0 threads Add post