Loading
Excel.Tips.Net ExcelTips (Menu Interface)

Hiding and Protecting Columns

Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Hiding and Protecting Columns.

Roger has a worksheet that he needs to distribute to different people so they can add and change some information. He wants to hide some of the columns in the worksheet, however, so that they cannot be viewed by users. He knows how to protect the worksheet and how to hide data in cells, but noticed that info is still visible in the formula bar.

Since you already know how to protect a worksheet, you are already on your way to accomplishing your task. These are the steps you should follow:

  1. Select the column you want to protect.
  2. Choose Cells from the Format menu. Excel displays the Format Cells dialog box.
  3. Make sure the Protection tab is displayed. (See Figure 1.)
  4. Figure 1. The Protection tab of the Format Cells dialog box.

  5. Make sure both the Locked and Hidden check boxes are selected. (It is the Hidden check box that controls whether the cell contents are visible in the formula bar or not.)
  6. Click OK to dismiss the dialog box.
  7. With the column still selected, choose Format | Column | Hide. Excel hides the column.
  8. Choose Tools | Protection | Protect Sheet. Excel displays the Protect Sheet dialog box. (See Figure 2.)
  9. Figure 2. The Protect Sheet dialog box.

  10. Enter a password to be used in protecting the worksheet.
  11. Using the check boxes, select what type of protection you want applied to the worksheet. At a minimum you should choose Select Locked Cells and Select Unlocked Cells. (These two options are selected by default in a worksheet.)
  12. Click OK to dismiss the dialog box. You are prompted to reenter your password (the one from step 8), which you should do.

At this point someone cannot view what is in the hidden column, even if they use F5 to jump to one of the cells in the column; it still won't appear in the formula bar. There is one caveat to all this. If you have some cells in the worksheet (or workbook) that are unlocked, so that the contents of the cell can be changed, it is still possible to see what is in individual cells of the column. How? Two methods, really:

  • In the unlocked cell, enter a formula that references a locked and hidden cell. For instance, if column E is locked and hidden, entering the formula =E3 will display, in the unlocked cell, the value in cell E3.
  • Copy the contents of the locked and hidden cell and paste it in the unlocked cell. Use F5 to jump to the locked and hidden cell, then press Ctrl+C, move to the unlocked cell, and press Ctrl+V. The contents of the locked and hidden cell are pasted in the unlocked cell.

The bottom line is that it is virtually impossible to 100% protect the contents of the column so that they cannot be viewed. Using the protection features of Excel makes it more difficult, but a determined user may be able to still view the contents in the described manner.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2781) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Hiding and Protecting Columns.

Related Tips:

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!

 

Leave your own comment:

*Name:
Email:
  Notify me about new comments ONLY FOR THIS TIP
Notify me about new comments ANYWHERE ON THIS SITE
Hide my email address
*Text:
*What is 5+3 (To prevent automated submissions and spam.)
 
 
           Commenting Terms

Comments for this tip:

keith roethlisberger    26 Feb 2016, 10:46
Question: I am trying to protect a worksheet, I select my options to allow users to edit cells. Then protect the sheet, but since I am running macros using an active x combo box it wont let me run the macro (i.e. locked out). Any suggestions?
Pankaj    13 Apr 2015, 10:28
dear sir
i want only lock my selected col & row, nothing entire sheet..
and its (selected Col & row) only show... other col & row i want editable... nothing lock..

request sir

thanks & wait ur reply
Pankaj (+918872729007)
Tom Dixon    19 Mar 2014, 16:46
Okay I forgot my password right after entering it twice. How do I locate my password?
 
 

Our Company

Sharon Parq Associates, Inc.

About Tips.Net

Contact Us

 

Advertise with Us

Our Privacy Policy

Our Sites

Tips.Net

Beauty and Style

Cars

Cleaning

Cooking

DriveTips (Google Drive)

ExcelTips (Excel 97–2003)

ExcelTips (Excel 2007–2016)

Gardening

Health

Home Improvement

Money and Finances

Organizing

Pests and Bugs

Pets and Animals

WindowsTips (Microsoft Windows)

WordTips (Word 97–2003)

WordTips (Word 2007–2016)

Our Products

Helpful E-books

Newsletter Archives

 

Excel Products

Word Products

Our Authors

Author Index

Write for Tips.Net

Copyright © 2016 Sharon Parq Associates, Inc.