View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
naddad naddad is offline
external usenet poster
 
Posts: 1
Default Option buttons: How to get the selected option from a group?


Hi,

I have a form in which I have yes/no questions. The user has to answer
the questions and at the end i need to display the score.
So I have several groups of 2 option buttons (Yes/No) and I would like
to know how I can find out which option is selected from a group.
Say group1 has "Yes" selected, I would like to have something like the
following:


Code:
--------------------
if group1.selected.label = "Yes" then countYes++ end if
--------------------


Can anyone help me?

Also, while I'm at it, I have about 25 questions so I have 25 groups.
Is there a smarter way to calculate the total score than type in the
line above for each and every group manually?

Thanks all,


--
naddad
------------------------------------------------------------------------
naddad's Profile: http://www.excelforum.com/member.php...o&userid=29817
View this thread: http://www.excelforum.com/showthread...hreadid=495201