What is the proper way to poll a group of option buttons on a custom userform, given that they are identified by a common GroupName ??
I want to put this into the form's OK-button click event.
Tks,
~~~Paul
What is the proper way to poll a group of option buttons on a custom userform, given that they are identified by a common GroupName ??
I want to put this into the form's OK-button click event.
Tks,
~~~Paul

This month, every Windows Secrets subscriber can download a one-chapter excerpt of Windows 7: The Missing Manual.Windows 7: The Missing Manual provides valuable information to help you overcome these difficulties in learning a new operating system. Subscribe today to download your free excerpt.
Can you define what you mean by "poll a group of option buttons ?"
Legare Coleman
Maybe 'polling' them isn't the right word...
Basically, what's the best way to tell which option button was selected out of the group?
~~~Paul
You can loop through them and see which one has a true value.
You might add a code to the click event of each one to do something or set something when an option is clicked.
Or you have code to do something based on which one is pressed:
if optionbutton1.value then
'do something
elseif optionbutton2.value then
'do something else
'add others as needed
endif
Steve