使用 GroupName 属性创建选项组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. 为每个控件的**Name** 属性输入一个值。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

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.