Please do not quote (see the forum rules)
explanation:
if the control (ct) is an optionbutton, then
check whether the optionbutton's value is True or False: iif(ct,True ,False )
if it's value is True then look at it's .caption (ct.caption)
and take only the number -from left to right- in that caption: val(ct.caption)
add that number to the numbers we already added into variable x.
Bookmarks