7,763
社区成员
发帖
与我相关
我的任务
分享
Option Explicit
Dim LastOption As Integer
Private Sub Form_Load()
Option1(0).Value = True
End Sub
Private Sub Option1_Click(Index As Integer)
If Index = 1 Then
If vbCancel = MsgBox("Dangerous! Are you sure?", vbOKCancel, "Warning") Then
Option1(LastOption).Value = True
Option1(LastOption).SetFocus
Exit Sub
End If
End If
LastOption = Index
End Sub