Link to home
Start Free TrialLog in
Avatar of Seamus2626
Seamus2626Flag for Ireland

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
Avatar of etech0
etech0
Flag of United States of America image

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
Avatar of Glenn Ray
Glenn Ray
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of Seamus2626

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!
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!
@Rory...I didn't know about that option (i.e., UserInterfaceOnly).  That is very handy; thanks!