Seamus2626
asked on
Unlock / clear cell if dropdown = Edit
Hi,
I have a range of cells (B31:B59) They have drop downs of "Delete", "No Change" or "Edit"
If B32 Edit is selected i want K31 to be first be unlocked (password "hello") and second have its contents cleared
Is there some code that can achieve this for me?
Thanks
I have a range of cells (B31:B59) They have drop downs of "Delete", "No Change" or "Edit"
If B32 Edit is selected i want K31 to be first be unlocked (password "hello") and second have its contents cleared
Is there some code that can achieve this for me?
Thanks
I would be happy to help you, but I don't understand your question. Can you try rephrasing it in a more clear way, and/or providing a sample file?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
FYI, you could protect the sheet in the Workbook_Open event using the UserInterfaceOnly:=True argument and then the code can clear the relevant cell(s) without needing to unprotect the sheet.
ASKER
Hi guys, thanks for your responses, Glen your code is slick, and i will be using this code again!
I will repost my q as having thought it through, my requirements are slightly different, thanks!
I will repost my q as having thought it through, my requirements are slightly different, thanks!
ASKER
Hi guys, thanks for your responses, Glen your code is slick, and i will be using this code again!
I will repost my q as having thought it through, my requirements are slightly different, thanks!
I will repost my q as having thought it through, my requirements are slightly different, thanks!
@Rory...I didn't know about that option (i.e., UserInterfaceOnly). That is very handy; thanks!