Protect all sheet excel

To prevent other users from accidentally or deliberately changing, moving, or deleting data in a worksheet, you can lock the cells on your Excel worksheet and then protect the sheet with a password. Say you own the team status report worksheet, where you want team members to add data in specific cells only and not be able to modify anything else. With worksheet protection, you can make only certain parts of the sheet editable and users will not be able to modify data in any other region in the sheet. 

Important: Worksheet level protection is not intended as a security feature. It simply prevents users from modifying locked cells within the worksheet. Protecting a worksheet is not the same as protecting an Excel file or a workbook with a password. See below for more information:

  • To lock your file so that other users can’t open it, see Protect an Excel file.

  • To prevent users from adding, modifying, moving, copying, or hiding/unhiding sheets within a workbook, see Protect a workbook.

  • To know the difference between protecting your Excel file, workbook, or a worksheet see Protection and security in Excel.

The following sections describe how to protect and unprotect a worksheet in Excel for Windows.

Here’s what you can lock in an unprotected sheet:

  • Formulas: If you don’t want other users to see your formulas, you can hide them from being seen in cells or the Formula bar. For more information, see Display or hide formulas.

  • Ranges: You can enable users to work in specific ranges within a protected sheet. For more information, see Lock or unlock specific areas of a protected worksheet.

Note: ActiveX controls, form controls, shapes, charts, SmartArt, Sparklines, Slicers, Timelines, to name a few, are already locked when you add them to a spreadsheet. But the lock will work only when you enable sheet protection. See the subsequent section for more information on how to enable sheet protection.

Worksheet protection is a two-step process: the first step is to unlock cells that others can edit, and then you can protect the worksheet with or without a password.

Step 1: Unlock any cells that needs to be editable

  1. In your Excel file, select the worksheet tab that you want to protect.

  2. Select the cells that others can edit.

    Tip: You can select multiple, non-contiguous cells by pressing Ctrl+Left-Click.

  3. Right-click anywhere in the sheet and select Format Cells (or use Ctrl+1, or Command+1 on the Mac), and then go to the Protection tab and clear Locked.

    Protection tab in the Format Cells dialog box

Step 2: Protect the worksheet

Next, select the actions that users should be allowed to take on the sheet, such as insert or delete columns or rows, edit objects, sort, or use AutoFilter, to name a few. Additionally, you can also specify a password to lock your worksheet. A password prevents other people from removing the worksheet protection—it needs to be entered to unprotect the sheet.

Given below are the steps to protect your sheet.

  1. On the Review tab, click Protect Sheet.

    The Changes group on the Review tab

  2. In the Allow all users of this worksheet to list, select the elements you want people to be able to change.

    The Protect Sheet dialog box

    Option

    Allows users to

    Select locked cells

    Move the pointer to cells for which the Locked box is checked on the Protection tab of the Format Cells dialog box. By default, users are allowed to select locked cells.

    Select unlocked cells

    Move the pointer to cells for which the Locked box is unchecked on the Protection tab of the Format Cells dialog box. By default, users can select unlocked cells, and they can press the TAB key to move between the unlocked cells on a protected worksheet.

    Format cells

    Change any of the options in the Format Cells or Conditional Formatting dialog boxes. If you applied conditional formatting before you protected the worksheet, the formatting continues to change when a user enters a value that satisfies a different condition.

    Format columns

    Use any of the column formatting commands, including changing column width or hiding columns (Home tab, Cells group, Format button).

    Format rows

    Use any of the row formatting commands, including changing row height or hiding rows (Home tab, Cells group, Format button).

    Insert columns

    Insert columns.

    Insert rows

    Insert rows.

    Insert hyperlinks

    Insert new hyperlinks, even in unlocked cells.

    Delete columns

    Delete columns.

    Note: If Delete columns is protected and Insert columns is not protected, a user can insert columns but cannot delete them.

    Delete rows

    Delete rows.

    Note: If Delete rows is protected and Insert rows is not protected, a user can insert rows but cannot delete them.

    Sort

    Use any commands to sort data (Data tab, Sort & Filter group).

    Note: Users can’t sort ranges that contain locked cells on a protected worksheet, regardless of this setting.

    Use AutoFilter

    Use the drop-down arrows to change the filter on ranges when AutoFilters are applied.

    Note: Users cannot apply or remove AutoFilter on a protected worksheet, regardless of this setting.

    Use PivotTable reports

    Format, change the layout, refresh, or otherwise modify PivotTable reports, or create new reports.

    Edit objects

    Doing any of the following:

    • Make changes to graphic objects including maps, embedded charts, shapes, text boxes, and controls that you did not unlock before you protected the worksheet. For example, if a worksheet has a button that runs a macro, you can click the button to run the macro, but you cannot delete the button.

    • Make any changes, such as formatting, to an embedded chart. The chart continues to be updated when you change its source data.

    • Add or edit notes.

    Edit scenarios

    View scenarios that you have hidden, making changes to scenarios that you have prevented changes to, and deleting these scenarios. Users can change the values in the changing cells, if the cells are not protected, and add new scenarios.

  3. Optionally, enter a password in the Password to unprotect sheet box and click OK. Reenter the password in the Confirm Password dialog box and click OK.

    Important: 

    • Use strong passwords that combine uppercase and lowercase letters, numbers, and symbols. Weak passwords don’t mix these elements. Passwords should be 8 or more characters in length. A passphrase that uses 14 or more characters is better.

    • It is critical that you remember your password. If you forget your password, Microsoft cannot retrieve it.

The Protect Sheet option on the ribbon changes to Unprotect Sheet when a sheet is protected. To view this option, click the Review tab on the ribbon, and in Changes, see Unprotect Sheet.

The Changes group on the Review tab

The Changes group on the Review tab

To unprotect a sheet, follow these steps:

  1. Go to the worksheet you want to unprotect.

  2. Go to File > Info > Protect > Unprotect Sheet, or from the Review tab > Changes > Unprotect Sheet.

  3. If the sheet is protected with a password, then enter the password in the Unprotect Sheet dialog box and click OK.

The following sections describe how to protect and unprotect a worksheet in Excel for the Web.

  1. Select Review Manage Protection.

  2. To turn on protection, in the Manage Protection task pane, select Protect sheet.

    Note      Although you can selectively protect parts of the sheet by setting various options in the Options section, these settings only apply when the Protect sheet setting is on.

    Managing sheet protection

  3. By default, the entire sheet is locked and protected.  To unlock specific ranges, select Unlocked ranges, and then enter a range name and cell range. You can add more than one range.

    Setting range protection

  4. Optionally, to require a password to edit a range, select Range password, enter and confirm the password, and then select Save. Make sure sheet protection is turned on.

    Setting range protection

  5. Optionally, to control the ability to edit protections for the entire sheet with a password, select Sheet protection password, enter and confirm the password, and then select Save.

    Setting a sheet password
    Important

    • Use strong passwords that combine uppercase and lowercase letters, numbers, and symbols. Weak passwords don’t mix these elements. Passwords should be 8 or more characters in length. Make sure the CAPS LOCK key is off and use correct capitalization. Passwords are case-sensitive.

    • It is critical that you remember your password. If you forget your password, Microsoft cannot retrieve it.

  6. Optionally, if you want to selectively enable and disable specific sheet elements, select the Options section, and then select one or more options.

    Option

    Allows users to

    Select locked cells

    Move the pointer to cells for which the Locked box is checked on the Protection tab of the Format Cells dialog box. By default, users are allowed to select locked cells.

    Select unlocked cells

    Move the pointer to cells for which the Locked box is unchecked on the Protection tab of the Format Cells dialog box. By default, users can select unlocked cells, and they can press the TAB key to move between the unlocked cells on a protected worksheet.

    Format cells

    Change any of the options in the Font and Alignment groups of the Home tab.

    Note      If cell formatting and hidden properties were previously protected by using the Format Cells or Conditional Formatting dialog boxes, they remain protected, but you can only modify options in these dialog boxes by using Excel for Windows. If you applied conditional formatting before you protected the worksheet, the formatting continues to change when a user enters a value that satisfies a different condition.

    Format columns

    Use any of the column formatting commands, including changing column width or hiding columns (Home tab, Cells group, Format button).

    Format rows

    Use any of the row formatting commands, including changing row height or hiding rows (Home tab, Cells group, Format button).

    Insert columns

    Insert columns.

    Insert rows

    Insert rows.

    Insert hyperlinks

    Insert new hyperlinks, even in unlocked cells.

    Delete columns

    Delete columns.

    Note: If Delete columns is protected and Insert columns is not protected, a user can insert columns but cannot delete them.

    Delete rows

    Delete rows.

    Note: If Delete rows is protected and Insert rows is not protected, a user can insert rows but cannot delete them.

    Sort

    Use any commands to sort data (Data tab, Sort & Filter group).

    Note: Users can’t sort ranges that contain locked cells on a protected worksheet, regardless of this setting.

    Use AutoFilter

    Use the drop-down arrows to change the filter on ranges when AutoFilters are applied.

    Note: Users cannot apply or remove AutoFilter on a protected worksheet, regardless of this setting.

    Use PivotTable reports

    Format, change the layout, refresh, or otherwise modify PivotTable reports, or create new reports.

    Edit objects

    Doing any of the following:

    • Make changes to graphic objects including maps, embedded charts, shapes, text boxes, and controls that you did not unlock before you protected the worksheet. For example, if a worksheet has a button that runs a macro, you can click the button to run the macro, but you cannot delete the button.

    • Make any changes, such as formatting, to an embedded chart. The chart continues to be updated when you change its source data.

    • Add or edit notes.

    Edit scenarios

    View scenarios that you have hidden, making changes to scenarios that you have prevented changes to, and deleting these scenarios. Users can change the values in the changing cells, if the cells are not protected, and add new scenarios.

    Notes

    • If you don’t want other users to see your formulas, you can hide them from being seen in cells or the Formula bar. For more information, see Display or hide formulas.

    • ActiveX controls, form controls, shapes, charts, SmartArt, Sparklines, Slicers, Timelines, and so on, are already locked when you add them to a spreadsheet. But the lock works only when you enable sheet protection. For more information, see Protect controls and linked cells on a worksheet.

There are two ways to unprotect a sheet, disable it or pause it.

Disable protection

  1. Select Review Manage Protection.

  2. To turn off protection, In the Manage Protection task pane, turn off Protect sheet.

    Turning sheet protection off

Pause protection

Pausing protection turns off protection for the current editing session while maintaining the protection for other users in the workbook. For example, you can pause protection to edit a locked range but maintain protection for other users.

  1. To pause sheet protection, select Review Pause Protection.

    Pausing sheet protection

    Note      If the sheet has a protection password, you must enter that password to pause protection.

  2. To resume sheet protection, select Review Resume Protection.

    Resuming sheet protection

At the bottom of the sheet, the sheet tab displays a locked icon if the sheet is protected (Sheet1), and an unlocked icon if it is paused (Sheet2).

Revealing sheet protection

See Also

Protection and security in Excel

Protect an Excel file

Protect a workbook

Lock or unlock specific areas of a protected worksheet

Lock cells to protect them

Display or hide formulas

Protect controls and linked cells on a worksheet

Copy and paste in a protected worksheet

Video: Password protect workbooks and worksheets (Excel 2013)

When it comes time to send your Excel spreadsheet, it’s important to protect the data that you’re sharing. You might want to share your data, but that doesn’t mean it should be changed by someone else.

Spreadsheets often contain essential data that shouldn’t be modified or removed by the recipient. Luckily, Excel has built-in features to protect your spreadsheets.

In this tutorial, I’ll help you make sure that your Excel workbooks maintain data integrity. Here are three key techniques you’ll learn in this tutorial:

  • Password protect entire workbooks to prevent them from being opened by unauthorized users.
  • Protect individual sheets and the workbook structureto prevent the insertion or deletion of sheets in the workbook.
  • Protect cells, to specifically allow or disallow changes to key cells or formulas in your Excel spreadsheets.

Even users with the best intentions may accidentally break an important or complex formula. The best thing to do is remove the option to change your spreadsheets altogether.

How to Protect Excel: Cells, Sheets, & Workbooks (Watch & Learn)

In the screencast below, you’ll see me work through several important types of protection in Excel. We’ll protect an entire workbook, a single spreadsheet, and more.

Want a step-by-step walkthrough? Check out my steps below to find out how to use these techniques. You’ll learn how to protect your workbook in Excel, as well as protecting individual worksheets, cells, and how to work with advanced settings. 

We start with broader worksheet protections, then work down to narrower targeted protections you can apply in Excel. Let’s get started learning how to protect your spreadsheet data:

1. Password Protect an Excel Workbook File

Let’s start off by protecting an entire Excel file (or workbook) with a password to prevent others from opening it.

This is a breeze to do. While working in Excel, navigate to the File tab choose the Info tab. Click on the Protect Workbook dropdown option and choose Encrypt with Password.

As is the case with any password, choose a strong and secure combination of letters, numbers, and characters, bearing in mind that passwords are case-sensitive.

Encrypt with PasswordEncrypt with PasswordEncrypt with Password

Browse to the File > Info tab, and choose Protect Workbook > Encrypt with password.

It’s important to note that Microsoft has really beefed up the seriousness of their password protection in Excel. In prior versions, there were easy workarounds to bypass password protection of Excel workbooks, but not in newer versions.

Encrypt documentEncrypt documentEncrypt document

Set a complex password for security’s sake, but make sure to store it safely.

In Excel 2013 and beyond, the password implementation will prevent these traditional methods to bypass it. Make sure that you store your passwords carefully and safely or you risk permanently losing access to your crucial workbooks.

Excel Workbook — Mark as Final

If you want to be a bit less forceful with your spreadsheets, consider using the Mark as Final feature. When you mark an Excel file as the final version, it switches the file to read-only mode, and the user will have to re-enable editing.

To change a file to read-only mode, return to the File > Info button, and click on Protect Workbook again. Click on Mark as Final and confirm that you want to mark the document as a final version.

Mark as final protect Excel workbookMark as final protect Excel workbookMark as final protect Excel workbook

Mark a file as the final version to leave a gentle warning for users of that file. 

Marking a file as the final version will add a soft warning to the top of the file. Anyone who opens the file after it has been marked as final will see a notice, warning them that the file is finalized. 

Excel Workbook Marked as FinalExcel Workbook Marked as FinalExcel Workbook Marked as Final

When a file is marked as the final version, the workbook will show this

Marking a file as the final version is a less formal way of signaling that a file shouldn’t be changed further. The recipient still has the ability to click Edit Anyway and modify the spreadsheet. Marking a file as the final edition is more like a suggestion, but it’s a great approach if you trust the other file users.

2. Password Protect Your Excel Sheet Structure

Next up, let’s learn how to protect the structure of an Excel workbook. This option will ensure that no sheets are deleted, added, or re-arranged inside of the workbook.

If you want everyone to be able to access the workbook, but limit the changes they can make to a file, this is a great start. This protects the structure of the workbook, and limits how the user can change the sheets inside of it.

To turn on this protection, go to the Review tab on Excel’s ribbon and click on Protect Workbook.

Protect workbook in ExcelProtect workbook in ExcelProtect workbook in Excel

Find the Review tab, click on Protect Workbook, and set a password to protect the structure of your Excel workbook.

Once this option is turned on, the following will go into effect:

  • No new sheets can be added to the workbook.
  • No sheets can be deleted from the workbook.
  • Sheets can no longer be hidden or unhidden from the user’s view.
  • The user can no longer drag and drop the sheet tabs to reorder them in the workbook.

Of course, trusted users can be given the password to unprotect the workbook and modify it. To unprotect a workbook, simply click on the Protect Workbook button again and input the password to unprotect the Excel workbook.

Unprotect workbook in ExcelUnprotect workbook in ExcelUnprotect workbook in Excel

Click Protect Workbook a second time and input the password to re-enable workbook changes.

3. How to Protect Cells in Excel

Now, let’s get down to really detailed methods for protecting a spreadsheet. So far, we’ve been password protecting an entire workbook or the structure of an Excel file. In this section, we dig into how to protect your cells in Excel with specific settings you can apply. We cover how to allow or block certain types of changes to be made to parts of your spreadsheet.

To get started, find Excel’s Review tab, and click on Protect Sheet. On the pop-up window, you’ll see a huge set of options. This window allows you to fine-tune how you want to protect the cells in your Excel spreadsheet. For now, let’s leave the settings at their default.

Protect sheet in ExcelProtect sheet in ExcelProtect sheet in Excel

To protect a sheet, select a tab in your Excel workbook, click on the Review tab and choose the Protect Sheet menu option.

This option allows for very specific protections of your spreadsheet. By default, the options will almost totally lock down the spreadsheet. Let’s add a password so that the sheet is protected. If you press OK at this point, let’s see what happens when you attempt to change a cell.

Error message in ExcelError message in ExcelError message in Excel

After a sheet has been protected, attempting to change a cell will yield this error message. 

Excel throws off an error that the cell is protected, which is exactly what we wanted.

Basically, this option is crucial if you want to ensure that your spreadsheet isn’t changed by others who have access to the file. Using the protect sheet feature is a way that you can selectively protect the spreadsheet.

To unprotect the sheet, simply click on the Protect Sheet button and re-enter the password to remove the protections added to the sheet.

Specific Protections in Excel

Let’s take a second look at the options that show when you start to protect a sheet in Excel workbooks.

Password protect in Excel

Password protect worksheet cells in Excel options.

The Protect Sheet menu lets you refine the options for sheet protection. Each of the boxes on this menu lets the user change slightly more inside of a protected worksheet.

To remove a protection, check the respective box in the list. For example, you could allow the spreadsheet user to Format cells by checking the corresponding box.

Here are two ideas on how you could selectively allow the user to change the spreadsheet:

  • Check the Format cells, columns, and rows boxes to let the user change the visual appearance of cells without modifying the original data.
  • Insert columns and rows could be checked so that the user can add more data, while protecting the original cells.

The important box to leave checked is the Protect worksheet and contents of locked cells box. This protects the data inside of cells. 

When you’re working with crucial financial data or formulas that will be used in making decisions, you have to maintain control of the data and ensure that it doesn’t change. Using these types of targeted protections is an important Excel skill to master.

Recap and Keep Learning More About Excel

Locking up a spreadsheet before you send it is crucial to protecting your valuable data and making sure that it’s not misused. The tips I shared in this tutorial help you maintain control of that data even after your Excel spreadsheet is forwarded and shared.

All of these tips are additional tools and steps to becoming an advanced Excel user. Protecting your workbooks is a specific skill, but there are lots of ways to improve your performance. As always, there’s room to grow your Excel skills further. Here are some helpful Excel tutorials with important skills to master next:

  • PivotTables are a great tool for working with spreadsheet data. Here’s 5 Advanced Excel Pivot Table Techniques to learn now.
  • ExcelZoo has a listing of additional tutorials for protecting your workbooks, sheets, and cells.
  • Condition formatting changes how a cell looks based on what’s inside of it. Here’s a comprehensive Excel tutorial on How to Use Conditional Formatting.

How do you protect your important business data when sharing it? Let me know in the comments section if you use these protection tools or others I may not know about.

Did you find this post useful?

Andrew Childress

I believe that life is too short to do just one thing. In college, I studied Accounting and Finance but continue to scratch my creative itch with my work for Envato Tuts+ and other clients. By day, I enjoy my career in corporate finance, using data and analysis to make decisions.

I cover a variety of topics for Tuts+, including photo editing software like Adobe Lightroom, PowerPoint, Keynote, and more. What I enjoy most is teaching people to use software to solve everyday problems, excel in their career, and complete work efficiently. Feel free to reach out to me on my website.

Wearing Protection

Sometimes, Excel just isn’t as versatile as you’d like. Some of us find protection particularly wearing. In this article, we present an easier way to protect / unprotect multiple worksheets. By Liam Bastick, Director with SumProduct Pty Ltd.

Query

Is there a way to protect / unprotect multiple worksheets in Excel at the same time?

Advice

I fear this article might give rise to a hornet’s nest of similar queries. Excel is a highly flexible piece of software, but sometimes it’s not all the modeller might hope for. Some readers will already have noted that some operations cannot be applied across multiple worksheets, with the application of protection just one item in that list.

However, before I address the above query, let me first summarise how protection works in Excel.

The Three Levels of Protection in Excel

If you open any workbook and select any cell in a randomly selected worksheet, you will note that the cell is “locked” by default (simply go to the cell, then depress CTRL + 1 and select the ‘Protection’ tab), viz.

Cells are locked by default

As the narrative in the dialog box notes, locking cells has no effect until the worksheet is protected. This is simple to prove: all cells are locked by default yet anyone can still edit any cell at will.

In order to protect the contents, you have to protect the worksheet (ALT + T + P + P in all versions of Excel, otherwise ‘Home’ tab of the Ribbon, then select ‘Format’ in the ‘Cells’ group and then select ‘Protect Sheet…’ in Excel 2007 onwards). For later versions of Excel, this will promote the following dialog box:

viz.

Protect Sheet Dialog Box

Personally, I am not keen on using passwords (other than ‘****’ so that I can see what I am typing!). This is because Excel is not secure software and more often than not, it’s the modeller who goes looking for a hack when they realise they have forgotten the password.

Nonetheless, this remains in the realm of the end user and may be entered if desired. It is only when the sheet has been protected that locked cells are protected. Other actions may or may not be allowed by checking the various check boxes displayed above.

But you can still delete this worksheet – even if it has been password protected. I don’t know about you, but that’s not my definition of “protected”! In order to protect sheets (e.g. prevent sheets being deleted, hidden or moved), you actually need to protect the workbook (ALT + T + P + W in all versions of Excel):

Protect Workbook Dialog Box

These are the three stages of protection in Excel: cell, worksheet and workbook.

The Basic Problem

The actual issue is that you cannot protect more than one sheet at a time in Excel. If you have many sheets in Excel, this can become very time consuming if you wish to protect all sheets. The solution is to resort to macros.
I have explained how to add macros before and to ensure that the workbook is saved as a macro-enabled workbook (please see either the article on locating links or the article on automating a Table of Contents for more details).

To protect all sheets, I suggest the following code in the Visual Basic Editor (ALT + F11):

Protect All Sheets Macro

Sub ProtectAll()

Dim wSheet As Worksheet

Dim Pwd As String

Pwd = InputBox(«Enter your password to protect all worksheets», «Password Input»)

For Each wSheet In Worksheets

wSheet.Protect Password:=Pwd, DrawingObjects:=True, Contents:=True, Scenarios:=True, _

AllowFormattingColumns:=True, AllowFormattingRows:=True

Next wSheet

End Sub

I have added additional functionality (e.g. formatting of columns and rows) so that you can see how you can modify what may be adjusted once all the worksheets have been protected. The best way to learn VBA is to play with it – and try not to tear your hair out!

To unprotect all sheets, I suggest the following:

Unprotect All Sheets Macro

Sub UnProtectAll()

Dim wSheet As Worksheet

Dim Pwd As String

Pwd = InputBox(«Enter your password to unprotect all worksheets», «Password Input»)

On Error Resume Next

For Each wSheet In Worksheets

wSheet.Unprotect Password:=Pwd

Next wSheet

If Err <> 0 Then

MsgBox «You have entered an incorrect password. All worksheets could not » & _

«be unprotected.», vbCritical, «Incorrect Password»

End If

On Error GoTo 0

End Sub

Readers may note for this example I have included an error trap to capture what happens if you put the wrong password in. I always recommend allowing for user error!

These macros can then be run from the ‘Developer’ tab. This tab is not visible by default but can be displayed but can be displayed (please consult the ‘Help’ guide as this varies between versions of Excel).

Word to the Wise

You can get quite clever regarding what functionalities are allowed in the protected worksheets. The attached Excel file provides a very simple example regarding how this might work in practice.

Regarding this month’s Excel file, I would like to emphasise this file may not work with all versions of Excel. Caveat emptor – it is provided in good faith and should work for most readers. However, I do not have time to enter into correspondence for those unlucky enough to find this file does not appear to work as intended. This is why I steer away from macros when I can!

Содержание

  1. Protection and security in Excel
  2. Which level of protection should I use?
  3. Need more help?
  4. How to Protect Cells, Sheets, and Workbooks in Excel
  5. How to Protect Excel: Cells, Sheets, & Workbooks (Watch & Learn)
  6. 1. Password Protect an Excel Workbook File
  7. Excel Workbook — Mark as Final
  8. 2. Password Protect Your Excel Sheet Structure
  9. 3. How to Protect Cells in Excel
  10. Specific Protections in Excel
  11. Recap and Keep Learning More About Excel

Protection and security in Excel

Excel gives you the ability to protect your work, whether it’s to prevent someone from opening a workbook without a password, granting Read-Only access to a workbook, or even just protecting a worksheet so you don’t inadvertently delete any formulas. In this topic we’ll discuss the various ways you can utilize the primary options to protect and distribute your Excel files.

If you forget or lose your password, Microsoft can’t retrieve it for you.

You should not assume that just because you protect a workbook or worksheet with a password that it is secure — you should always think twice before distributing Excel workbooks that could contain sensitive personal information like credit card numbers, Social Security Number, employee identification, to name a few.

Worksheet level protection is not intended as a security feature. It simply prevents users from modifying locked cells within the worksheet.

Following are the different options available for protecting your Excel data:

File-level: This refers to the ability to lock down your Excel file by specifying a password so that users can’t open or modify it. You have two choices here:

File encryption: When you choose this option, you specify a password and lock the Excel file. This prevents other users from opening the file. For more information, see Protect an Excel file.

Setting a password to open or modify a file: You specify a password to open or modify a file. Use this option when you need to give Read-only or edit access to different users. For more information, see Protect an Excel file.

Mark as Final: Use this option if you want to mark your Excel file as the final version and want to prevent any further changes by other users. For more information, see Add or remove protection in your document, workbook, or presentation.

Restrict Access: If your organization has permissions set up using Information Rights Management (IRM), you can apply any of the available IRM permissions to your document. For more information, see Add or remove protection in your document, workbook, or presentation.

Digital signature: You can add digital signatures to your Excel file. For more information, see Add or remove a digital signature in Office files.

Note: To add a digital signature, you need a valid certificate from a certificate authority (CA).

Workbook-level: You can lock the structure of your workbook by specifying a password. Locking the workbook structure prevents other users from adding, moving, deleting, hiding, and renaming worksheets. For more information on protecting workbooks, see Protect a workbook.

Worksheet-level: With sheet protection, you can control how a user can work within worksheets. You can specify what exactly a user can do within a sheet, thereby making sure that none of the important data in your worksheet are affected. For example, you might want a user to only add rows and columns, or only sort and use AutoFilter. Once sheet protection is enabled, you can protect other elements such as cells, ranges, formulas, and ActiveX or Form controls. For more information on protecting worksheets, see Protect a worksheet.

Which level of protection should I use?

To control the level of access users should have to an Excel file, use file-level protection. Let’s say you have a weekly status report of your team members in an Excel file. You don’t want anyone outside your team to be even able to open the file. There are two options available:

If you don’t want others to open your file: You can encrypt the Excel file, which is the most common technique used. This basically means you lock it with a password and nobody except you can open it.

If you want to enable Read-only or editing access to different users: Maybe, you want the managers in your team to be able to edit the weekly status report, but team members should only have Read-only access. You can protect the Excel file by specifying two passwords: one to open, and the other to modify. You can later share the appropriate passwords with the team depending on the access they should be given.

To control how users should work with worksheets inside a your workbook’s structure, use workbook-level protection. Let’s say your status report workbook has multiple worksheets, and each worksheet is named after a team member. You want to make sure each team member can add data to their own worksheet, but not be able to modify any of the worksheets in the workbook, whether it be adding a new worksheet, or moving worksheets around within the workbook.

To control how users should work within an individual worksheet, use worksheet-level protection. Let’s say each worksheet in your status report workbook contains data that is common to all worksheets, like header rows or a specific report layout, and you really don’t want anyone to change it. By protecting your worksheet, you can specify that users can only perform specific functions in a sheet. For example, you can give users the ability to enter data, but keep them from deleting rows or columns, or only insert hyperlinks or sort data.

You can use one or more levels of protection for your Excel data depending on your/your organization’s needs. You can choose to use all of the available options or a combination of options—it’s completely up to the level of security you want for your Excel data. For example, you may choose to encrypt a shared Excel file, as well as enable workbook and worksheet protection, while only using worksheet protection on a personal workbook just so you don’t accidentally delete any formulas.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

Источник

How to Protect Cells, Sheets, and Workbooks in Excel

When it comes time to send your Excel spreadsheet, it’s important to protect the data that you’re sharing. You might want to share your data, but that doesn’t mean it should be changed by someone else.

Spreadsheets often contain essential data that shouldn’t be modified or removed by the recipient. Luckily, Excel has built-in features to protect your spreadsheets.

In this tutorial, I’ll help you make sure that your Excel workbooks maintain data integrity. Here are three key techniques you’ll learn in this tutorial:

  • Password protect entire workbooks to prevent them from being opened by unauthorized users.
  • Protect individual sheets and the workbook structure, to prevent the insertion or deletion of sheets in the workbook.
  • Protect cells, to specifically allow or disallow changes to key cells or formulas in your Excel spreadsheets.

Even users with the best intentions may accidentally break an important or complex formula. The best thing to do is remove the option to change your spreadsheets altogether.

How to Protect Excel: Cells, Sheets, & Workbooks (Watch & Learn)

In the screencast below, you’ll see me work through several important types of protection in Excel. We’ll protect an entire workbook, a single spreadsheet, and more.

Want a step-by-step walkthrough? Check out my steps below to find out how to use these techniques. You’ll learn how to protect your workbook in Excel, as well as protecting individual worksheets, cells, and how to work with advanced settings.

We start with broader worksheet protections, then work down to narrower targeted protections you can apply in Excel. Let’s get started learning how to protect your spreadsheet data:

1. Password Protect an Excel Workbook File

Let’s start off by protecting an entire Excel file (or workbook) with a password to prevent others from opening it.

This is a breeze to do. While working in Excel, navigate to the File tab choose the Info tab. Click on the Protect Workbook dropdown option and choose Encrypt with Password.

As is the case with any password, choose a strong and secure combination of letters, numbers, and characters, bearing in mind that passwords are case-sensitive.

Browse to the File > Info tab, and choose Protect Workbook > Encrypt with password.

It’s important to note that Microsoft has really beefed up the seriousness of their password protection in Excel. In prior versions, there were easy workarounds to bypass password protection of Excel workbooks, but not in newer versions.

Set a complex password for security’s sake, but make sure to store it safely.

In Excel 2013 and beyond, the password implementation will prevent these traditional methods to bypass it. Make sure that you store your passwords carefully and safely or you risk permanently losing access to your crucial workbooks.

Excel Workbook — Mark as Final

If you want to be a bit less forceful with your spreadsheets, consider using the Mark as Final feature. When you mark an Excel file as the final version, it switches the file to read-only mode, and the user will have to re-enable editing.

To change a file to read-only mode, return to the File > Info button, and click on Protect Workbook again. Click on Mark as Final and confirm that you want to mark the document as a final version.

Mark a file as the final version to leave a gentle warning for users of that file.

Marking a file as the final version will add a soft warning to the top of the file. Anyone who opens the file after it has been marked as final will see a notice, warning them that the file is finalized.

When a file is marked as the final version, the workbook will show this

Marking a file as the final version is a less formal way of signaling that a file shouldn’t be changed further. The recipient still has the ability to click Edit Anyway and modify the spreadsheet. Marking a file as the final edition is more like a suggestion, but it’s a great approach if you trust the other file users.

2. Password Protect Your Excel Sheet Structure

Next up, let’s learn how to protect the structure of an Excel workbook. This option will ensure that no sheets are deleted, added, or re-arranged inside of the workbook.

If you want everyone to be able to access the workbook, but limit the changes they can make to a file, this is a great start. This protects the structure of the workbook, and limits how the user can change the sheets inside of it.

To turn on this protection, go to the Review tab on Excel’s ribbon and click on Protect Workbook.

Find the Review tab, click on Protect Workbook, and set a password to protect the structure of your Excel workbook.

Once this option is turned on, the following will go into effect:

  • No new sheets can be added to the workbook.
  • No sheets can be deleted from the workbook.
  • Sheets can no longer be hidden or unhidden from the user’s view.
  • The user can no longer drag and drop the sheet tabs to reorder them in the workbook.

Of course, trusted users can be given the password to unprotect the workbook and modify it. To unprotect a workbook, simply click on the Protect Workbook button again and input the password to unprotect the Excel workbook.

Click Protect Workbook a second time and input the password to re-enable workbook changes.

3. How to Protect Cells in Excel

Now, let’s get down to really detailed methods for protecting a spreadsheet. So far, we’ve been password protecting an entire workbook or the structure of an Excel file. In this section, we dig into how to protect your cells in Excel with specific settings you can apply. We cover how to allow or block certain types of changes to be made to parts of your spreadsheet.

To get started, find Excel’s Review tab, and click on Protect Sheet. On the pop-up window, you’ll see a huge set of options. This window allows you to fine-tune how you want to protect the cells in your Excel spreadsheet. For now, let’s leave the settings at their default.

To protect a sheet, select a tab in your Excel workbook, click on the Review tab and choose the Protect Sheet menu option.

This option allows for very specific protections of your spreadsheet. By default, the options will almost totally lock down the spreadsheet. Let’s add a password so that the sheet is protected. If you press OK at this point, let’s see what happens when you attempt to change a cell.

After a sheet has been protected, attempting to change a cell will yield this error message.

Excel throws off an error that the cell is protected, which is exactly what we wanted.

Basically, this option is crucial if you want to ensure that your spreadsheet isn’t changed by others who have access to the file. Using the protect sheet feature is a way that you can selectively protect the spreadsheet.

To unprotect the sheet, simply click on the Protect Sheet button and re-enter the password to remove the protections added to the sheet.

Specific Protections in Excel

Let’s take a second look at the options that show when you start to protect a sheet in Excel workbooks.

Password protect worksheet cells in Excel options.

The Protect Sheet menu lets you refine the options for sheet protection. Each of the boxes on this menu lets the user change slightly more inside of a protected worksheet.

To remove a protection, check the respective box in the list. For example, you could allow the spreadsheet user to Format cells by checking the corresponding box.

Here are two ideas on how you could selectively allow the user to change the spreadsheet:

  • Check the Format cells,columns, and rows boxes to let the user change the visual appearance of cells without modifying the original data.
  • Insert columns and rows could be checked so that the user can add more data, while protecting the original cells.

The important box to leave checked is the Protect worksheet and contents of locked cells box. This protects the data inside of cells.

When you’re working with crucial financial data or formulas that will be used in making decisions, you have to maintain control of the data and ensure that it doesn’t change. Using these types of targeted protections is an important Excel skill to master.

Recap and Keep Learning More About Excel

Locking up a spreadsheet before you send it is crucial to protecting your valuable data and making sure that it’s not misused. The tips I shared in this tutorial help you maintain control of that data even after your Excel spreadsheet is forwarded and shared.

All of these tips are additional tools and steps to becoming an advanced Excel user. Protecting your workbooks is a specific skill, but there are lots of ways to improve your performance. As always, there’s room to grow your Excel skills further. Here are some helpful Excel tutorials with important skills to master next:

  • PivotTables are a great tool for working with spreadsheet data. Here’s 5 Advanced Excel Pivot Table Techniques to learn now.
  • ExcelZoo has a listing of additional tutorials for protecting your workbooks, sheets, and cells.
  • Condition formatting changes how a cell looks based on what’s inside of it. Here’s a comprehensive Excel tutorial on How to Use Conditional Formatting.

How do you protect your important business data when sharing it? Let me know in the comments section if you use these protection tools or others I may not know about.

Источник

Protecting Excel Sheet

Protect worksheet is a feature in Excel when we do not want any other user to make changes to our worksheet. It is available in the “Review” tab of Excel. It has various features where we can allow users to perform some tasks but not make changes, such as they can select cells to use an AutoFilter but cannot make any changes to the structure. Also, it is recommended to protect a worksheet with a password.

An Excel worksheet that is protected using a password and/or has the cells in the worksheet locked to prevent any changes is known as a “Protect Sheet.”

Purpose of a Protecting sheet with a password

To prevent the unknown users from accidentally or purposely changing, editing, moving, or deleting data in a worksheet, you can lock the cells in the Excel worksheet and then protect an Excel sheet with a password.

Table of contents
  • Protecting Excel Sheet
    • #1 How to Protect a Sheet in Excel?
    • #2 How to Protect Cells in an Excel Worksheet?
    • #3 How to Hide the Formula Associated with a Cell?
    • Pros
    • Cons
    • Things to Remember
    • Recommended Articles

#1 How to Protect a Sheet in Excel?

Below are the steps for protecting the sheet in Excel:

  1. First, open the worksheet you wish to save. Then, right-click the worksheet or go to “Review” and “Protect Sheet.” The option lies in the “Changes” group, then click on “Protect Sheet” from the list of options displayed.

    Protect sheet Example 1

  2. It will prompt you to enter a password.

    Protect sheet Example 1-1

  3. Insert the password as per choice.

    Protect sheet Example 1-2

  4. The section below displays a list of options you can allow the users of the worksheet to perform. Every action has a checkbox. Check those actions you wish to enable the worksheet users to complete.

    Protect sheet Example 1-3

  5. If no action is checked, the users may only VIEW the file and not perform any updates by default. Click on “OK.”

    Protect sheet Example 1-4

  6. Re-enter the password as prompted on the second screen. Then, click on “OK.”

    Protect sheet Example 1-5

#2 How to Protect Cells in an Excel Worksheet?

To protect cells in Excel, follow the steps given below:

  • Step 1: Right, click on the Excel cell you wish to protect. Then, select “Format Cells” from the menu displayed.

Protect sheet Example 2

  • Step 2: Go to the tab named “Protection.”

Protect sheet Example 2-1

  • Step 3: Check “Locked” if you wish to lock the cell in Excel. It will prevent the cell from editing, and we can only view the content. Check “Hidden” if you wish to hide the cell. It will hide the cell and so the content.

Protect sheet Example 2-2

#3 How to Hide the Formula Associated with a Cell?

  • Step 1: As shown below, cell F2 has a formula: D2+E2 = F2.

Example 3

  • Step 2: Below shows that the Excel cell is protected as “Locked” and “Hidden” as both the options are checked.

sheet Example 3-1

  • Step 3: As a result, the formula is hidden / not visible in the formula bar, as shown below.

Example 3-2

  • Step 4: Upon unprotecting the sheet, the formula also starts appearing in the formula bar, as shown below.

Example 3-3

Pros

  1. A protected Excel sheet with a password is used to secure sensitive information from unwanted changes done by unauthorized entities.
  2. Excel worksheet cell actions are access controlled. It means they can be configured to be available for some users and not others.

Cons

  • If you protect an Excel sheet with a password, and if it is forgotten, it is non-recoverable. It means there is no automated or manual way of resetting or recovering the old password. It can cause data loss.

Things to Remember

  1. The password of the protected sheet is case-sensitive.
  2. The password of the protected sheet is non-recoverable.
  3.  If no actions are checked in the “Protect Sheet” dialog window, the default accessibility is “View.” It means the others can view the protected worksheet and cannot add new data or make any changes to the cells in the worksheet.
  4. Protecting the sheet is mandatory if one wishes to protect the cells as locked or hidden.
  5. If the sheet is unprotected in ExcelOnce the workbook has been password-protected, one must input the exact password that was entered while protecting the workbook in order to unprotect it.read more, all the formatting/locking associated with the cells would be overridden/gone.
  6. Locking a cell in Excel prevents it from making any changes.
  7. Hiding a cell hides the formula associated with it, making it invisible in the formula bar.

Recommended Articles

This article is a guide to Protect Sheet in Excel. We discuss how to protect sheets in Excel, practical examples, and downloadable Excel templates. You may learn more about Excel from the following articles: –

  • VBA UnProtect Sheet
  • Vba Protect SheetVBA Protect Sheet is an In-built function that protects the worksheet with a password & prohibits the users from editing, deleting, or moving the contained data. read more
  • Scroll Lock in ExcelWhen we press the down arrow key from any cell, it normally moves us to the next cell below it, but when we have scroll lock turned on, it drags the worksheet down while the cursor stays in the same cell.read more
  • Lock Cells in ExcelIn Excel, cells are locked to protect them from unwanted editing, deleting, and overwriting. Locking cells is specifically beneficial in cases where an excel worksheet needs to be shared with several colleagues.read more
  • Split Panes in ExcelSplitting panes in excel means splitting a workbook in different parts, this technique is available in the windows section of the View tab, panes can be split in horizontal or vertical way or it can be a cross split, the horizontal and vertical split can be seen in the mid-section of the worksheet however cross split can be done by dragging the panes.read more

Reader Interactions

Понравилась статья? Поделить с друзьями:
  • Pronounce the word vowel
  • Protect all excel worksheets
  • Protect all cells in excel
  • Pronounce the word through
  • Protect all but one cell excel