Create an option group using the GroupName property

  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 that 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.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.