How do you uncheck a radio button in a group?

squeakums

Well-known Member
Joined
May 15, 2007
Messages
857
Office Version
  1. 365
I'm trying to figure out how you uncheck a radio button in a group. It is always showing one button dotted in each group and I cannot just make the boxes blank until checked.

An example of this is:

(Check Box) Yes (Check Box) No (Check Box) N/A

Let me know if this is possible through a macro on the button or through its properties in design mode?

Thanks. :wink: :o :-D :-?
 
This code will uncheck all option buttons on the active sheet.
Code:
Sub UncheckOB()
Dim i As Integer
Dim shapecount As Integer
    shapecount = ActiveSheet.Shapes.Count
    On Error Resume Next
    For i = 1 To shapecount
        ActiveSheet.OLEObjects("OptionButton" & i).Object.Value = False 'True
    Next i
End Sub
 
Upvote 0
Do I have to use this formula for each option button? Or, can I go into properties and change in there easier? I have a lot of option buttons lol. Thanks!
 
Upvote 0
There is no formula. This is VBA (macro) code.
Did you run it?
Like I said earlier, when run, it will uncheck all option buttons on the active worksheet.
Yes, you will have to run it after the option buttons have been changed, but it will un-check them as you asked.
 
Upvote 0

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