Private Sub UserForm_Activate()
Dim cbname As Object, c As String
For i = 1 To 10
c = "UserForm1.CheckBox" & i
Set cbname = c '利用循环设定目标,如I=1 则设定cbname为 checkbox1,...i=9则cbname=checkbox9
With cbname '对指定的checkbox赋初值
.Text = i
.caption =i
.
.
End With
Next i