bottom
Excel 2007 Tips!
     
Your e-mail address is safe!
Close Note
excel2007.Tips.Net Welcome toExcel2007.Tips.Net

Helpful Links

Excel 2007 Home
Tips.Net Home

Ask a Question
Make a Comment

Cleaning Tips
Excel2007 Tips
Home Tips
WordTips

Newest Tips

Correcting Pale Shading of Selected Cells

Drawing Borders

Converting Numeric Values to Text Values

Specifying Fonts for the Web

Easily Dividing Values by a Set Amount

Adding Text to a Shape

Unwanted Files Loading when Starting Excel

 

Protecting Worksheet Names

Summary: Want to stop other people from changing the names of your worksheets? You can provide the desired safeguard by using the workbook protection features built into Excel.

If you are developing workbooks for others to use, you may want your worksheets to retain whatever names you give them. Excel normally allows users to change worksheet names, as desired. If you don't want them to change, the only way to prevent it is to lock the workbook. You can take these steps if you are using a version of Excel prior to Excel 2007:

  1. Display the Review tab of the ribbon.
  2. Click Protect Workbook in the Changes group. Excel displays the Protect Structure and Windows dialog box. (Click here to see a related figure.)
  3. Make sure that the Structure check box is selected.
  4. Enter a password in the Password box.
  5. Click on OK. Excel displays the Confirm Password dialog box, prompting you to reenter the password.
  6. Reenter the password and click on OK.

The user can no longer make changes to the names of the worksheet tabs, nor to anything else that affects the structure of the workbook. (For instance, they cannot enter new worksheets or delete existing ones.)

If you want to protect the workbook under the control of a macro, then you can use this code:

ActiveWorkbook.Protect Password:="MyPassword", Structure:=True

All you need to do is provide password you want to use in place of the "MyPassword" example.