- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¦^´_ 2# rick4615 - Sub Test()
- Dim ar, obj, i As Long
-
- With Sheets("¸ê®Æ")
- 'Combobox
- ar = Application.Transpose(Application.Transpose(.Range(.[A3], .[A3].End(xlToRight)).Value))
- .ComboBox1.List = ar
-
- '§R°£checkbox
- For Each obj In .OLEObjects
- If obj.Name Like "CheckBox*" Then obj.Delete
- Next
-
- '·s¼Wcheckbox
- For i = 1 To UBound(ar)
- With .OLEObjects.Add(ClassType:="Forms.CheckBox.1", Link:=False, _
- DisplayAsIcon:=False, Left:=0 + 93.5 * (i - 1), Top:=126, Width:=90, Height:=22.5)
- .Object.Caption = ar(i) '§ï¦W
- End With
- Next
- End With
- End Sub
½Æ»s¥N½X |
|