- ©«¤l
- 463
- ¥DÃD
- 116
- ºëµØ
- 0
- ¿n¤À
- 580
- ÂI¦W
- 0
- §@·~¨t²Î
- Vista
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-4
- ³Ì«áµn¿ý
- 2017-11-13
|
¦^´_ 2# GBKEE
GBKEE«e½ú§A¦n!
¡@¨}®v!¨¯WÅo!ÁÂÁ¦A¤T!!
Sub ´£¥Ü()
Set c = [G3:G36]
If Application.WorksheetFunction.CountIf(c, "<0") Then
MsgBox "³o¬O·¥°ª·ÀIªº§ë¸ê¤è®×¡I½Ð«·sµû¦ô¡I¡I"
End If
Set D = [G37:G84]
If Application.WorksheetFunction.CountIf(D, "<0") Then
MsgBox "³o¬O¤¤«×·ÀIªº§ë¸ê¤è®×¡I½Ð§Ù«æ¥Î§Ô¡I¡I"
End If
Set E = [G85:G132]
If Application.WorksheetFunction.CountIf(E, "<0") Then
MsgBox "³o¬O§C·ÀIªº§ë¸ê¤è®×¡I½ÐÂÔ·VÀ³¹ï¡I¡I"
End If
End Sub
Option Base 0
Sub ´£¥ÜA()
Dim myRng(0 To 2) As Range
Set myRng(0) = Range("G3:G36")
Set myRng(1) = Range("G37:G84")
Set myRng(2) = Range("G85:G132")
If Application.WorksheetFunction.CountIf(myRng(0), "<0") Then
MsgBox "³o¬O·¥°ª·ÀIªº§ë¸ê¤è®×¡I½Ð«·sµû¦ô¡I¡I"
ElseIf Application.WorksheetFunction.CountIf(myRng(1), "<0") Then MsgBox "³o¬O¤¤«×·ÀIªº§ë¸ê¤è
®×¡I½Ð§Ù«æ¥Î§Ô¡I¡I"
ElseIf Application.WorksheetFunction.CountIf(myRng(2), "<0") Then MsgBox "³o¬O§C·ÀIªº§ë¸ê¤è®×
¡I½ÐÂÔ·VÀ³¹ï¡I¡I"
End If
End Sub |
|