Is it possible to lock a particular range of cells based on the input from a dropdown in a row of data?
For example, each row of my spreadsheet represents a patient, and the first cell asks a question, to which a "Yes" or "No" response is required (which is selected/entered via a dropdown).
EDIT
The "Yes/No" cell is, in fact, a merge of two cells (G13 & H13). I have updated my example to reflect this.
EDIT ENDS
If the user selects "No", then I wish to lock the remainder of the range of questions (G13-H13:AB13) as there is no need to enter data here. However, if the user selects, "Yes", then the remainder of the cells shall remain available to enter data into.
All cells within each range have data entered via dropdowns only.
Here is what I am hoping to achieve:
If "No" Then lock range G13-H13:AB13 Else If "Yes" Then do nothing i.e. G13-H13 I13-J13 K13-L13 .... .... AB13 | NO | ---- | ---- | ---- | ---- | ---- | (Locked Cells) OR G13-H13 I13-J13 K13-L13 .... .... AB13 | YES | | | | | | (Unlocked Cells) Once again, I would like to emphasize that all data is entered via dropdown menus and that nothing is to be typed in manually; I would like it so that if G13-H13 = "No", then the remainder of the cells within the range which have dropdowns are blocked or locked from having further information selected from their respective dropdowns.
Please note that the value in G13-H13 can be either "Yes" or "No".
Can this be achieved using VBA and if so, how?
Many thanks.