Create an option group using the GroupName property

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

  1. Place all required OptionButton controls on the form. Note that option buttons in a MultiPage or Frame will automatically form an option group.

  2. Identify the buttons for each group you want to create.

  3. Enter a value for the Name property of each control.

  4. For each button in a group, set the GroupName property to the same value.