Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Protecting a Single Worksheet.
by Allen Wyatt
(last updated September 26, 2017)
Tom has a workbook with a number of worksheets and he only wants to protect the first worksheet against changes. Consequently, he would like to save the workbook with all changes except any made to that first worksheet.
Excel provides the ability to protect individual worksheets in a workbook. Without going into too much detail (as this has been covered in other issues of ExcelTips), you can protect a worksheet by displaying the Home tab of the ribbon, clicking Format in the Cells group, and then choosing Protect Sheet.
If this type of protection is not enough, then you are pretty much entering the realm of macros. Let's say that the name of the worksheet you want to protect is ImportantStuff. (Creative name, I know.) The idea would be to create a copy of the ImportantStuff worksheet as you want it to always appear. Name this copy something like KeepImportantStuff. Hide the KeepImportantStuff worksheet, and then use an AutoClose macro to (1) delete the ImportantStuff worksheet, since it may have been changed by the user; (2) duplicate the KeepImportantStuff worksheet, naming the copy ImportantStuff; and (3) saving and closing the workbook.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11727) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Protecting a Single Worksheet.
Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!
One day you are just editing your worksheet like you normally do, then you see an error that says "Cannot shift object ...Discover More
Worksheets are easily accessible in a workbook, but you may not want them to be so open. You can hide worksheets so they ...Discover More
Want a quick way to combine your worksheets? This tip features a simple macro to do the task for you.Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.