Prevent a User from Changing Any Data in Excel

Add to Favorites
Author:

I'll show you how to lock a spreadsheet so that nothing can be changed in it.

This is a great feature to use when you want to present data without allowing for it to be potentially corrupted or altered.

The result of this action is that it will prevent a user from doing almost anything with your data unless they know how to unlock it and know your password, if one is used.

Steps to Protect a Worksheet in Excel

  1. Go to the Review tab and click the Protect Sheet button:
  2. Choose if you want to password protect the data or not.  This is optional.
  3. Choose what you want a user to be able to do within the worksheet.  There are many options, but "Select locked cells" and "Select unlocked cells" are selected by default and this is good enough usually.
  4. Hit OK and you are finished.

Now, the user cannot change any data within this worksheet.  If they try to do something that is not allowed, this is the message they see:

This message does tell the user where to go to Unprotect the worksheet though, so, if you did not enter a password in Step 2 above, then it will be really easy for any user to change data on the sheet.

Steps to Unprotect a Worksheet

  1. Navigate to the desired worksheet.
  2. Go to the Review tab and click the Unprotect Sheet button.  This will only appear if the sheet is protected.
  3. If there is a password for the sheet, you will need to enter it now:
  4. Now the sheet is unprotected and can be worked on as usual.

Notes

This is a very useful feature if you need to send your Excel files out to other people.  Just remember to not forget your password, if you use one. 

Using this in conjunction with hiding worksheets, especially using "very hidden" worksheets will add a good layer of protection to your data.


Downloadable Files: Excel File

Question? Ask it in our Excel Forum


Excel VBA Course
Excel VBA Course - From Beginner to Expert

200+ Video Lessons 50+ Hours of Instruction 200+ Excel Guides

Become a master of VBA and Macros in Excel and learn how to automate all of your tasks in Excel with this online course. (No VBA experience required.)

View Course

Similar Content on TeachExcel
Prevent Spaces from Being Entered in Cells in Excel
Tutorial: How to prevent a user from entering any spaces within text in Excel.  This allows you to...
Make Users Enable Macros in Order to View a Workbook in Excel
Tutorial: Tutorial showing you how to make a user enable macros in a workbook in order to view the w...
Hide Macros (VBA) from the User in Excel
Tutorial: Here is a simple way to prevent the user from seeing the macros that are in an Excel wor...
Prevent Duplicate Values in a Range in Excel
Tutorial: Ensure that your lists and data sets are full of only unique values by preventing a user ...
Unfinished Work Reminder in Excel (Complete Setup)
Tutorial: How to remind a user that they didn't finish a form, task, or worksheet input in Excel be...
Make a Drop Down List Menu in a Cell in Excel
Tutorial: I'll show you how to make a drop down list menu in a cell in Excel. This allows you to ha...
Tutorial Details
Downloadable Files: Excel File
Excel VBA Course
Excel VBA Course - From Beginner to Expert

200+ Video Lessons
50+ Hours of Video
200+ Excel Guides

Become a master of VBA and Macros in Excel and learn how to automate all of your tasks in Excel with this online course. (No VBA experience required.)

View Course