Welcome toExcel.Tips.Net
Tips.Net Home
ExcelTips Home
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
Learn Access Now
Free Printable Forms
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips
Advertise on the
ExcelTips Site
Adding a Little Animation to Your Life
Converting a Range of URLs to Hyperlinks
Making the Formula Bar Persistent
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 choosing, in Excel 2007, display the Home tab of the ribbon, click Format in the Cells group, and then choose Protect Sheet. In older versions of Excel you choose Tools | Protection | Protect Sheet. The options available in protecting a worksheet depend on the version of Excel you are using.
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 (6793) applies to Microsoft Excel versions: 97 2000 2002 2003 2007
Your Data, Your Way! Want the greatest control possible over how your data appears on the page? Excel's custom formats can provide that control, and ExcelTips: Custom Formats can unlock the secrets to creating your own custom formats.