Option Buttons in group get unselected in protected sheet

MukulPurohit

New Member
Joined
Mar 14, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello Team,
I have created one group box and added two Option Buttons (form Control) inside it. And I have Linked the option buttons to cell $I$6.
I want to show 2nd option button as selected and so I set the value off $I$6 to 2. (This makes the second option box selected)
Then I mark Cell $I$6 as locked as I do not want user to be able to change the option selection.

1710408811722.png


When I mark the sheet as protected and I click on 1st Option Button I get an expected error message -
1710408667235.png


But when I click OK on this both the option boxes get unselected and the linked cell value is still showing two.
Expected behavior is that the second option should still be shown as selected ... but it is not !!!

1710408852088.png

Can you please help me with this?
Regards
Mukul
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
This is a cross post, you are supposed to add a link to any place where you posted this same question.
 
Upvote 0
If you can use vba then you could assign the following macro to both optionbuttons :

Place in a new Standard Module:
VBA Code:
Sub Opt_Click()
    ActiveSheet.OptionButtons(Application.Caller).Value = xlOn
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top