- ©«¤l
- 703
- ¥DÃD
- 276
- ºëµØ
- 0
- ¿n¤À
- 1005
- ÂI¦W
- 1
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-6-30
- ³Ì«áµn¿ý
- 2024-5-29
|
[µo°Ý] ¦p¦ó±NCheckbox§ó§ï¦¨OptionButton
- Dim cCBs As Integer
- Dim ctl As Control
- cCBs = 0
- For Each ctl In Me.Controls
- If TypeName(ctl) = "CheckBox" Then
- cCBs = cCBs + 1
- ReDim Preserve aryCBs(1 To cCBs)
- Set aryCBs(cCBs).CheckboxGroup = ctl
- End If
- Next ctl
½Æ»s¥N½X- Option Explicit
- Public WithEvents CheckboxGroup As MSForms.CheckBox
- Private Sub CheckboxGroup_Click()
- UserForm2.xlText = CheckboxGroup.Caption
- UserForm3.xlText = CheckboxGroup.Caption
- End Sub
½Æ»s¥N½X- Dim ctl As Control
- cCBs = 0
- For Each ctl In Me.Controls
- If TypeName(ctl) = "CheckBox" Then
- cCBs = cCBs + 1
- ReDim Preserve aryCBs(1 To cCBs)
- Set aryCBs(cCBs).CheckboxGroup = ctl
- End If
- Next ctl
½Æ»s¥N½X- Public xlText As String
- Dim aryCBs() As New cControlArray
½Æ»s¥N½X ¦A¦¸·PÁ¦U¦ì¦Ñ®vÌ¡I |
|