XL2000: Some Cells in Worksheet Not Selected Using TAB or SHIFT+TAB (214337)
The information in this article applies to:
This article was previously published under Q214337 SYMPTOMS
If you press either TAB or SHIFT+TAB to move from cell to cell in
a worksheet, some cells in the worksheet may not be selected, even though
they are unlocked.
CAUSE
This problem may occur when the all of the following conditions are true:
- The worksheet contains one or more merged cells. The merged cells, as
well as other cells, have been unlocked through the following
steps:
- Selecting the cells.
- On the Format menu, clicking Cells, and then clicking to select the Protection tab.
- Clicking to clear the Locked check box, and then clicking OK.
-and-
- The worksheet has been protected by clicking the Tools menu, pointing to Protection, and clicking Protect Sheet.
-and-
- The Visual Basic EnableSelection property of the worksheet is set to 1, or xlUnlockedCells.
-and-
- The cells that are not selected are adjacent to the merged cells.
RESOLUTION
To prevent this problem from occurring, set the EnableSelection property of the worksheet to zero ( 0), or xlNoRestrictions. To do this, follow the steps in either method below.
Method 1- On the View menu, point to Toolbars, and then click Control Toolbox.
- Click the Properties tool in the Control Toolbox.
- In the list of objects, select the worksheet (for example, Sheet1).
- In the box to the right of EnableSelection, click 0 - xlNoRestrictions.
- Close the Properties window.
Method 2- On the Tools menu, point to Macro, and then click Visual Basic Editor.
- If the Project Explorer window is not visible, click Project Explorer on the View menu.
- In the Project Explorer, select the name of the worksheet (for example, Sheet1).
- On the View menu, click Properties Window.
- In the box to the right of EnableSelection, click 0 - xlNoRestrictions.
- On the File menu, click Close and Return to Microsoft Excel.
You should now be able to use the TAB key and SHIFT+TAB to select all of
the unlocked cells in the worksheet.
NOTE: You can also use the pointer to select unlocked cells in a
worksheet, even if the EnableSelection property is set to xlUnlockedCells.
Modification Type: | Major | Last Reviewed: | 9/27/2003 |
---|
Keywords: | kbprb KB214337 |
---|
|