EXCEL - Locking a Cell from User input whilst allowing a Linked combobox?
Posted
by
Christopher Leach
on Stack Overflow
See other posts from Stack Overflow
or by Christopher Leach
Published on 2013-07-01T16:18:33Z
Indexed on
2013/07/01
16:20 UTC
Read the original article
Hit count: 191
I have a Protected Worksheet which is a checklist with a series of checkpoints. Each row has Item and Description cells that are locked. Each row has several columns with its contents to be set by a ComboBox and a text input column. Both i have left unlocked. I have Locked the the Item and Description columns and left only the 'Select Unlocked Cells' checked via Sheet Protection. I have one ComboBox on the worksheet that moves around and adjusts its LinkedCell and its Content list using the worksheets SelectionChanged event.
When the user selects a cell to bring up the drop down list, the user is able to type into the cell and the Drop Down Box disappears.
What is the best way to keep the cell unlocked so it can be selectable(as 'Select Locked Cells" is unchecked) however stop the user from being able to type in the cell and to allow the cells contents to become modifiable only via the ComboBox?
© Stack Overflow or respective owner