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 forecolorhow to create a drop down menu in excel 2007excel vba untilinterview excel test samplepivot chart in excel 2007vba data validationcell coloring worksheethow to show hidden columns in excelcheckboxes in excel 2007excel vba templatesactivex control definitionunderstanding vbaaccess vba close databasepassword protect a workbookhow to hide cells in excelactivesheet.unprotect passwordremove excel sheet passwordvb6 file existsexcel event calendar templatevba select a worksheetvba code to unprotect sheetvba isblankisempty excelclustered cylinder chart excelascending and descending order in excelxml to xlsx converterexcel color duplicatesvba add hyperlinkvba close excelexcel colour indexexcel construction schedule templatehow to do a checkmark in excel 2010sum if sqlsql server pivot table exampleapplication filedialog msofiledialogfilepickervba excel activesheetplot chart in excelvba pop up windowproject workbook templatevba editor downloadremove duplicate in excelbase sas tutorial for beginnersvbscript tutorial for beginners step by stepselect case statement vbaadvanced excel macroelse if statement vbabasics of vbafile handling in vbscriptvba activexvba activate cell3d chart in excelvb 6.0 interview questions and answers pdfexcel 2003 checkboxwhere to find developer tab in excel 2010dynamic charts in excel 2007deduplicate exceltick sheet excelsql interview questions and answers in pdfhow to unlock excel without passwordvba userform controlssql testing interview questions and answers pdfunprotect workbook structureaccess vba case statementexcel visual basic commandshyperlink macroexcel programme templateproject status template exceltechnical interview questions and answers for fresherssimple pie chart worksheetsas basics tutorialunprotect sheethow do i merge cells in excelapplying filters in excelvba delete entire rowunlock excel file for editingsimple macro excel