• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Lock Unlock Cells based on Drop down selection by formula or VBA

Dear All,
I am enclosing a sample sheet here with. in which I Need the Cells C3:D8 should be Locked if Value is Selected No in C1 from Drop Down and Cell C3:D8 Should be Unlocked if Value is selected as Yes in C1 from drop down. Kindly help.
Thanks,
Best Regards,
Sukhdev Singh
 

Attachments

  • Sample_file_for_cell_Lock_Unlock.xlsx
    9.3 KB · Views: 21
Hi Sukhdev,

By Locked , you means to say non-editable?

If so than it can be only achieved if the sheet is protected with or without password.

Do the other range will be required data entry or not?

Regards,
 
Hi Sukhdev,

By Locked , you means to say non-editable?

If so than it can be only achieved if the sheet is protected with or without password.

Do the other range will be required data entry or not?

Regards,

Hi Somendra,
Thanks for reply. I Mean to say if I select the value No, CELLS (C3:C8) should be Non Editable and if Value Selected Yes, CELLS (C3:C8) should be editable. Rest of the sheet can be editable.
Thanks,
SUkhdev Singh
 
Hi Somendra,
Thanks once again for resolving my query, but I have tried same in actual sheet in which I wished to implement it, but it is protecting all desired cell on selection of Yes and No Both. Kindly guide how can I resolve it. Attaching the original sheet for your kind perusal. I need D20:G23 unlock if value D19 contains Yes and D20:D23 lock if value in D19 contains No. What mistake i am doing here. please guide.
thanks,
Best Regards,
Sukhdev Singh
 

Attachments

  • ITDeclnForm1.xlsm
    35.4 KB · Views: 9
Hi Somendra,
Thanks once again for resolving my query, but I have tried same in actual sheet in which I wished to implement it, but it is protecting all desired cell on selection of Yes and No Both. Kindly guide how can I resolve it. Attaching the original sheet for your kind perusal. I need D20:G23 unlock if value D19 contains Yes and D20:D23 lock if value in D19 contains No. What mistake i am doing here. please guide.
thanks,
Best Regards,
Sukhdev Singh
Dear Somendra,
I found the error where I was doing mistake. DOne. Please leave it thanks
Best Regards,
Sukhdev singh
 
Hi ,

i need help here, since i am beginner in excel.

how to lock the cells of row, based on the answers that we select.

eg: if my ans is "closed", then rest of the cells on that row till few range should be blocked.

if the ans is other than closed, rest of the cells can be able to edit.

pls suggest. i have attached the file.
 

Attachments

  • chandoo.xlsx
    9.3 KB · Views: 13
Back
Top