
Private Sub OptionButton1_Click()
If OptionButton1.Value = True Then Range("A2").Value = 1
End Sub
Private Sub OptionButton2_Click()
If OptionButton2.Value = True Then Range("A2").Value = 2
End Sub
Private Sub UserForm_inizilaize()
If Range("A2").Value = 1 Then
OptionButton1.Value = True
OptionButton1.Value = False
Else
If Range("A2").Value = 2 Then
OptionButton1.Value = False
OptionButton1.Value = True
Else
OptionButton1.Value = False
OptionButton1.Value = False
End If
End If
End Sub |
Private Sub OptionButton1_Click()
If OptionButton1.Value = True Then Range("A2").Value = 1
End Sub
Private Sub OptionButton2_Click()
If OptionButton2.Value = True Then Range("A2").Value = 2
End Sub
Private Sub UserForm_Activate()
If Range("A2").Value = 1 Then
OptionButton1.Value = True
ElseIf Range("A2").Value = 2 Then
OptionButton2.Value = True
End If
End Sub
|
