OptionButton

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.

PREMIUM TEMPLATES LIMITED TIME OFFER

ON SALE80% OFF

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.

LIMITED TIME OFFER

Leave A Comment


Related pages


named ranges vbaexcel apply chart templateexcel shortcut hidelogical function in exceldelete row in vbamerge 2 columns in excelhow to insert title in excelvba copy to clipboardexcel if statement with two conditionsexcel vba iferrorhow to add developer tab in powerpoint 2010access vba insertinteractive charts excelvba sort listboxexcel macro offsetinsert command in excelexcel vb macroexcel hide a worksheetschedule template powerpointwhat is isna in excelvba insert a rowwriting a macro for excelaccess vba sleepweekly status report template wordopen file dialog vbexcel remove duplicate datapivot table in excel 2007 with example xlsdelete file vb6vba internetexplorer.applicationunprotect excel 2010 workbookexcel vba worksheetfunctionadding password to excelvariant data type in vbexcel 2010 vlookup exampleexcel insert row with formulahow to protect an excel worksheetcountif in vbamatch duplicates in excelvba code examplemerge and center cells excel 2007excel vba dirvbs write filemacro to insert blank rows in excelactivesheet.listobjectsnested conditional statementsexcel charting toolsactivesheet.unprotect passwordrange variable vbaexcel vba sortaccess 2007 msgboxvlookup function in excelhow do you password protect an excel spreadsheetaccess vba run macrousing offset function in excelvlookup samplevba controliferror excel vbavba function callexcel vba applicationmessagebox buttonsmacro to unprotect workbookfrequently asked interview questions for freshersvb cellsformula concatenate excelvba input boxunhide column a excel 2007minute meeting template wordmacro basics excel 2007excel input form templateexcel vba waitexcel check for blank cellexcel sql tablevba code in excel