Lock a set of Cells using a Check Box

Anonymous
2020-07-30T19:32:45+00:00

I have searched the form and can't find anything on what I'm trying to accomplish. I need to lock a specific set of cells when a checkbox is clicked. I understand how to do it if it's always the same cells. What I need is a little different. There is a checkbox for each line. anytime one of the checkboxes is checked, I want it to lock just the cells in that row. 

In my example. when the checkbox is selected in G2, I want it to lock the just the cells of A2:F2. When the checkbox is selected on G4, I need it to lock the cells of A4:F4. Does this make sense? I don't have any code as I'm not sure where to even start. Thanks in advance for the help

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

8 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Anonymous
    2020-07-31T15:04:49+00:00

    That worked! Thank you

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Anonymous
    2020-07-30T19:52:41+00:00

    Currently, they are Form Control, but I can do either. I'm not set on either one. I am using conditional formatting to also Color the row. but I can do those other ways.

    Was this answer helpful?

    0 comments No comments
  5. HansV 460.5K Reputation points MVP Volunteer Moderator
    2020-07-30T19:43:22+00:00

    What kind of check boxes are those? Forms check boxes or ActiveX check boxes?

    Was this answer helpful?

    0 comments No comments