Criar um conjunto de controles OptionButtonCreate a Set of OptionButton Controls
By default, all OptionButtoncontrols in a container are part of a single option group.By default, all OptionButtoncontrols in a container are part of a single option group. Isso significa que a seleção de um dos botões automaticamente definirá todos os botões de opção no formulário como Falso.This means that selecting one of the buttons automatically sets all other option buttons on the form to False.
Se você quiser mais de um grupo de opções no formulário, há duas maneiras de criar grupos adicionais:If you want more than one option group on the form, there are two ways to create additional groups:
Use the GroupNameproperty to identify related buttons.Use the GroupNameproperty to identify related buttons. This method reduces the number of controls required on the form, which can reduce the hard disk space required and improve the performance of the form.This method reduces the number of controls required on the form, which can reduce the hard disk space required and improve the performance of the form. If you want to create an option group in a TabStrip(which is not a container), you must use the GroupName property.If you want to create an option group in a TabStrip(which is not a container), you must use the GroupName property. Para obter mais informações, consulte Como: criar um conjunto de botões de opção usando a propriedade GroupName.For more information, see How to: Create a Set of OptionButtons by Using the GroupName Property.
Put related buttons in a Page, MultiPage, or Frame on the form.Put related buttons in a Page, MultiPage, or Frame on the form. Para obter mais informações, consulte Como: adicionar um controle a um formulário.For more information, see How to: Add a Control to a Form.
Suporte e comentáriosSupport and feedback
Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação?Have questions or feedback about Office VBA or this documentation? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.