- ©«¤l
- 2
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 3
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- SP1
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-9-10
- ³Ì«áµn¿ý
- 2013-10-20
|
½Ð°Ý¦p¦ó¨ú±o®Ö¨ú¤è¶ôªº¦æ¦C¦ì¸m©O?
¥»©«³Ì«á¥Ñ mulder_shiu ©ó 2013-9-10 19:26 ½s¿è
Sub test()
S = 0
For Each C In ActiveSheet.CheckBoxes 'ªí³æªº±±¨î¶µ(®Ö¨ú¤è¶ô)
S = S + IIf(C.Value = 1, 1, 0)
If C.Value = 1 Then
MsgBox C.Cells.Row '·í±ø¥ó¦¨¥ß®É,¨ú±ocellsªº¦æ¼Æ©M¦C¼Æ
End If
Next
MsgBox S
End sub
½Ð°Ý¤j¤jActiveSheet.CheckBoxes ·í±ø¥ó¦¡¦¨¥ß®É,§Ú·Q¨ú±o·í¤Ucellsªº¦æ¼Æ©M¦C¼Æ?? |
|