- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 5# av8d
§Ú¦b4# ¦³¼g¬O 2# oobird ªþÀÉ ª«¥óÃþ§O¼Ò²Õ
ª«¥óÃþ§O¼Ò²Õ cControlArray µ{§Ç ¦p¤U- Option Explicit
- Public WithEvents CheckboxGroup As MSForms.CheckBox
- Private Sub CheckboxGroup_Click()
- UserForm1.xlText = CheckboxGroup.Caption
- End Sub
½Æ»s¥N½X UserForm1 ªºµ{¦¡½X- Public xlText As String
- Private Sub CommandButton1_Click()
- '»¡©ú UserForm1¤¤ CommednBurron µ{¦¡
- UserForm1.TextBox1 = UserForm1.xlText
- End Sub
- Private Sub UserForm_Initialize()
- 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
- End Sub
½Æ»s¥N½X §Ú¤§©Ò¥H¤£ª½±µ¤W¶ÇÀÉ®× ¬O§Æ±æ¦U¦ì¦h½m²ß¤~·|¶i¨Bªº |
|