Excel.Tips.Net Welcome toExcel.Tips.Net

Helpful Links

Tips.Net Home
ExcelTips Home
Ask an Excel Question
Make a Comment

Tips.Net Store

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

Newest Tips

Converting to Octal

Filtering Columns for Unique Values

Printing Multiple Worksheets on a Single Page

Changing the Default Font

Creating a Drawing Object

Determining a Value of a Cell

Understanding Macros

 

Selecting Combo Boxes in Locked Worksheets

Summary: Once you protect a worksheet, you may run into problems with any combo boxes that the worksheet contains. This is a simple problem to fix, as described in this tip. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, Excel 2003, and Excel 2007.)

Kathy wrote to say she was having problems with a calendar she developed in Excel. It seems that when she protects her worksheet, she cannot change the selection in a combo box on the calendar.

The solution to this is relatively simple, provided you remember that every control you add to a worksheet (such as a combo box) is associated with a cell in the worksheet. Normally, when you select a value in the combo box, the change is reflected in the cell with which the combo box is associated. Thus, selecting "8" in the combo box would result in the associated cell's value being changed to 8. Likewise, if you change the cell value, the value displayed in the combo box also changes.

When you protect a worksheet, you prevent changes to any cells except those that you specify as "changeable." If Excel cannot make changes to the cell associated with a combo box (because that cell is protected), then it won't allow changes to the combo box. The solution is to make sure the cell associated with the combo box is not protected. Follow these steps:

  1. Unprotect the entire worksheet.
  2. Select the cell associated with your combo box.
  3. Display the Format Cells dialog box. (In versions of Excel prior to Excel 2007 choose Cells from the Format menu. In Excel 2007 display the Home tab of the ribbon, click Format in the Cells group, and then choose Format Cells.)
  4. Make sure the Protection tab is selected. (Click here to see a related figure.)
  5. Make sure the Locked check box is not selected.
  6. Click on OK.
  7. Re-protect your entire worksheet.

The combo box control should now work as desired.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2691) applies to Microsoft Excel versions: 97 | 2000 | 2002 | 2003 | 2007

More Power! For some people, the prospect of creating macros can be scary. Those who conquer their fears, however, find they become much more confident and productive once they learn how to make Excel do exactly what they want. ExcelTips: The Macros is an invaluable source for learning Excel macros. You are introduced to the topic in bite-sized chunks, pulled from past issues of ExcelTips. Learn at your own pace, exactly the way you want.
 
Check out ExcelTips: The Macros today!