OptionButton Activex control is used to select only one selection from multiple selections within a group. When we select an OptionButton_Control on the Worksheet in a group immediately it will de select all other OptionButtons in the same group. It has value property. It indicates whether the OptionButton_Control is selected or not. When we select Option Button the value is ‘True’. And when it de selects the value is ‘False’. The Option Button value can be linked to a Worksheet Cell. Option Button is used on the WorkSheet. You can see how it works and more details about ActiveX Option Button Control on the UserForm or Worksheet in the following chapter.



50+ Project Management Templates Pack
Excel PowerPoint Word

Advanced Project Plan & Portfolio Template
Excel Template

Business Presentations Templates Pack
PowerPoint Slides

20+ Excel Project Management Pack
Excel Templates

20+ PowerPoint Project Management Pack
PowerPoint Templates

10+ MS Word Project Management Pack
Word Templates

VBA ActiveX OptionButton Control on the Worksheet

Please find more details about VBA ActiveX Option Button Control on the Worksheet.

  1. Go To Developer Tab and then click Insert from the Controls
  2. Drag the two OptionButton controls on the Worksheet from the ActiveX Controls group.
  3. Right click on the OptionButton_control, before that Design Mode should be turned ON.
  4. Click on the properties from the available list.
  5. On the left side find ‘Caption’ from the available properties of the control.
  6. On the right side mention as ‘Male’. Similarly for second OptionButton caption as ‘FeMale’. Please find the below screen shot for the same.
  7. OptionButton Excel VBA ActiveX Control12

  8. On the left side find ‘LinkedCell’ from the available properties of the control.
  9. On the right side mention as ‘B8’. Similarly for second OptionButton mention as ‘C8′. You can see the same in above screen shot for the same.
  10. Now, you can check the output by clicking the OtionButtons and see the output in Linked cell. Please find the below screen shot for the same.
  11. Output:

    OptionButton Excel VBA ActiveX Control11

Difference Between OptionButton and CheckBox_Control

Option Button and Checkbox both displays an option. Both are used to turn On or Off options. Difference between is, Option Button is used to select only one selection from multiple selections. Where as CheckBox is used to select multiple selections from the available list.


Leave A Comment

Related pages

vba string starts withexcel vba listboxvba xlexcel vba status bar progressvba run sqlvba range commandvba cells valueadvanced excel vba trainingexcel macro hyperlinkuserform vbaexcel range vb netexcel password protect worksheetexcel chart layoutunprotect excel workbookvba vs macrovba variable declarationexcel chart add onsproject management checklist template excelhow to increase column width in excelvba access excelvba empty celldeleting duplicates excelworkbook saveasvba excel sqlcommand button vba excelvba for outlookhow to hard return in excelsorting formula in excelexcel import data from another workbookvba coding for beginnerswhat is a vlookup function in excelhow do you remove a hyperlink in excelexcel vba borderaroundexcel macro delete rowsmerge multiple excel sheets into oneexcel spreadsheets for beginnersexcel if cell equals thenvba objectexport access to excel vbavba dsn connection stringhow to create macros in excel 2007progress bar vba excel 2010excel chart stylesvlookup in excel 2007 formulaaccess vba sql queryexcel vba delete rowsvlookup 2010 tutorialcheck boxes in excelhow to create workbook in excelopen xlsx files in excel 2003hard return in excelvlookup uses exampleshow to delete all empty rows in excelexcel quick tutorialrgb excelhow to delete a column in excelvba variable arraycontoh minutes of meetingproject analysis template excelhow to delete duplicate records in excel 2007excel macro close excelexcel form controls vbaddl and dml commands in sql pdfvba programsvbscript write to filevba advanced programmingunhide workbook excel 2010activecell.selectcreate excel vbachart templates in excelunprotect excel sheet without passwordmake pivot table in excelvba enableeventsvlookup returns 0yes no msgbox vbaassign macro to command button