XL98: Macro Examples Using OptionButton Controls on a User Form (190276)
The information in this article applies to:
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q190276 SUMMARY
There are two ways to group option buttons on a user form. To group the
controls, use one of the following methods:
- Place the option buttons inside a Frame control.
-or-
- Use the GroupName property to create a group.
Both of these methods create a group for the specified option buttons,
which makes each of the option buttons (within a group) mutually exclusive.
This means that when you click any option button in the group, all other
option buttons in the group are set to "False."
The method you use depends on how you want to implement the project and
whether you want to use a Frame control for each group on the user form or
whether you want to use macro code.
This article contains macro examples that use both methods. This article
also contains an example that illustrates a third method that does not
require grouping of option buttons.
REFERENCES
For more information about grouping option buttons, from the Visual Basic
Editor, click the Office Assistant, type groupname, click Search, and
then click to view "Ways to create an option group."
NOTE: If the Assistant is hidden, click the Office Assistant button on the
Standard toolbar. If the Assistant is not able to answer your query, please
see the following article in the Microsoft Knowledge Base:
176476 OFF: Office Assistant Not Answering Visual Basic Questions
Modification Type: | Major | Last Reviewed: | 6/17/2005 |
---|
Keywords: | kbProgramming KB190276 |
---|
|