Use option buttons on a protected excel sheet

Anonymous
2022-08-22T15:01:44+00:00

I want to protect an excel sheet but allow the option buttons I have in it to be used, while the sheet is protected. The aim is to make an interactive form as shown in the photo attached. Currently when I protect the sheet I have ticked "locked cells", "unlocked cells" and "edit objects". But when I try use the object buttons after I protected the sheet I get the following message "The cell or chart you're trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password". I'm assuming I will have to use some VBA code to solve this issue. Can you help me please.

Microsoft 365 and Office | Excel | For business | 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

2 answers

Sort by: Most helpful
  1. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2022-08-22T16:02:54+00:00

    Unprotect the sheet

    Right-click the Optionbutton and choose "Format Control"

    In the Protection tab uncheck "Locked"

    Do that with all Optionbuttons

    Each Optionbutton can have a different linked cell.

    If you format the Optionbutton look into the Control tab which cell you have in "Cell link".

    In the sheet, right-click these cells and choose "Format cells"

    In the Protection tab uncheck "Locked"

    Protect your sheet

    Your sheet should work.

    Otherwise you might have other links to protected controls or VBA code that wants to change something or...

    In this case we need to see your file.

    Andreas.

    Was this answer helpful?

    8 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2022-08-23T08:38:58+00:00

    That worked, thank you.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments