not sure how to set up correctly.
Code: Select all
Private Sub CommandButton2_Click()
Dim OB As Variant
If OptionButton1.Value = True Then
OptionButton1.Value = 1
End If
If OptionButton2.Value = True Then
OptionButton2.Value = 2
End If
If OptionButton3.Value = True Then
OptionButton3.Value = 3
End If
If OptionButton4.Value = True Then
OptionButton4.Value = 4
End If
If OptionButton5.Value = True Then
OptionButton5.Value = 5
End If
If OptionButton6.Value = True Then
OptionButton6.Value = 6
End If
'OB = OptionButton.Value
Select Case OB
Case 1
Case 2
Case 3
Case 4
Case 5
Case 6
End Select
End Sub