§Ún¦b AÄæ¦ÜJÄ椤¼Æ¦³ÃC¦âªºÀx¦s®æ¼Æ¥Ø¡C(¥u¦³¤@´Ú¶À¦â)
·í«ö¤U«ö¶s«á,«K·|´£¥Ü ¦³¦h¤ÖӼƥءC
¦bºô¤W§ä¨ì¥H¤U¸ê®Æ,¦ý¬O©T©w¤F¦b²Ä¤GÄæ,½Ð°Ý¦p¦ó°µ¨ì ¥ÑAÄæ¦ÜJÄæ, §ä¨ì¦³ÃC¦âªºÀx¦s®æ«á,±N¼Æ¥Ø¥Îmsgbox ´£¥Ü¥X¨Ó¡CÁÂÁÂ
Sub test()
Dim sum As Long, Count As Long
sum = 0
Count = 0
For i = 1 To 10
If Cells(i, 2).Interior.ColorIndex = 6 Then
sum = sum + Cells(i, 2).Value
Count = Count + 1
End If
Next i
MsgBox Count & " different Finds"
End sub |