The information in this article applies to:
SYMPTOMSIf 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:
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.
RESOLUTIONEven though you can select restricted cells, if the cells are locked and the worksheet is protected, you cannot change them. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONYou can use the EnableSelection property of a worksheet to determine what, if any, cells on a worksheet may be selected by the user. EnableSelection has three possible values:
You can unlock a cell or group of cells by following these steps:
However, you can select locked cells by using the Name box on the Formula bar. If you click the Name box, type in a cell reference (D5, for example) or a range reference (D5:E10, for example), and then press Enter, the indicated cell or range will be selected. Because the cells are locked and the worksheet protected, they cannot be changed. You can still copy or fill from a locked cell into unlocked cells without receiving any error messages. Additional query words: XL97 XL98 vba vbe
Keywords : kbdta xlformat KbVBA |
Last Reviewed: October 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |