EnableSelection Property May be Overridden (157102)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q157102 SYMPTOMS
If you use the EnableSelection property of a worksheet to restrict certain
cells from being selected, you may still be able to select the restricted
cells. For example, if you use the following code to prevent selection of
locked cells:
ActiveSheet.EnableSelection = xlUnlockedCells
it may still be possible to select locked cells.
CAUSE
This occurs because the EnableSelection property does not prevent you from
selecting cells using the Name box on the Formula bar.
Also, you can use a macro to select cells, even if they are locked, by
using a line of code similar to the following:
Range("B5").Select
RESOLUTION
Even though you can select restricted cells, if the cells are locked and
the worksheet is protected, you cannot change them.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 10/10/2006 |
---|
Keywords: | kbdtacode KB157102 |
---|
|