循环啊
假设 option1 数组
Dim ttt as vb.optionbutton
for each ttt In option1
if ttt.value = true then
msgbox "option1(" & ttt.index & ")=true"
exit for
end if
next
非数组
Dim ttt as vb.control
for each ttt in form1.controls
if typeof ttt is vb.optionbutton
if ttt.value=true then
msgbox "option1(" & ttt.index & ")=true"
exit for
end if
ned if
next
Dim i As Variant
Dim opt As OptionButton
For Each i In Controls
If TypeOf i Is OptionButton Then
If i.Value = True Then
Set opt = i
Exit For
End If
End If
Next
opt.Caption = "OK!"
OPT就是被选成TRUE的OPTIONBUTTON的引用