Data Protection
Data Protection
Using Mouse
● Go to Sheet Name
● Do a right-click and click on ‘Protect’
1
Different Options in ‘Protect Sheet’ dialog box
Once you get the prompt as shown in the figure above and you have entered a password in
‘Password to Unprotect Sheet’ – you can select either of the following options. By default, the first 2
options are already selected which helps you in just selecting the cells – you cannot make any edits
to the cells, you cannot do any formatting, you cannot inset/delete any rows/columns. To perform
these operations while the sheet is protected, you need to tick the relevant options –
● ‘Select locked cells’ – A default option, let’s you select locked cells
● ‘Select unlocked cells’ – A default option, let’s you select unlocked cells
● ‘Format cells’ – If ticked (√), you can apply formatting to locked cells otherwise you will not
be able to change the format of the cells as well
● ‘Format columns’ – If ticked (√), you can only change the width of the column or hide it –
you cannot cut, clear contents, delete it as the worksheet is protected so it will not let you
change the structure of the file
● ‘Format rows’ – If ticked (√), like ‘Columns’ option but just that you can hide or change the
height of rows
● ‘Insert columns’ – If ticked (√), you can insert new columns
● ‘Insert rows’ – If ticked (√), you can insert new rows
● ‘Insert hyperlinks’ – If ticked (√), the user can insert hyperlinks (even in locked cells).
● ‘Delete columns’ – If ticked (√), you can delete columns
● ‘Delete rows’ – If ticked (√), you can delete rows
● ‘Sort’ – If ticked (√), the user can sort data in a range (as long as the range doesn’t contain
any locked cells).
● ‘Use AutoFilter’ – If ticked (√), the user can use existing autofiltering.
● ‘Use PivotTable reports’ – If ticked (√), the user can change the layout of pivot tables or
create new pivot tables.
● ‘Edit objects’ – If ticked (√), the user can make changes to objects (such as Shapes) and
charts, as well as insert or delete comments.
● ‘Edit scenarios’ – If ticked (√), the user can use scenarios
What are Locked cells?
If a worksheet is not protected, when you do a right-click on any cell and click on ‘Format Cells’ and
then click on ‘Protection’, by default ‘Locked’ is ticked. When you protect a worksheet, and select
any of the options above, if a cell is not locked, the protection does not extend to that cell. So, if you
want formula driven cells to be protected, you can make sure they are locked and the cells which are
being called in those formulas (input values), you can unlock them as you might want to change the
input values to see the impact on the formula cells.