Private Sub Command1_Click()
Dim check As Control
For Each check In Form1
If TypeName(check) = "CheckBox" Then
If check.Value = Checked Then
timu = timu + check.Caption & ","
End If
End If
Next
timu1 = Split(timu, ",")
timu = vbCrLf
For i = 0 To UBound(timu1)
timu = timu + timu1(i) & vbCrLf
Next
MsgBox "所选的题目是:" & timu
End Sub
IT618资讯网 提供服务端开发,前端开发,网页特效,热门开源系统研究,软件下载,站长建站,淘宝开店等学习资料.