ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

³]©w´£¥Ü½d³ò

³]©w´£¥Ü½d³ò

¦U¦ì«e½ú§A­Ì¦n!
         «e½ú!!°ÝÃD¦pªþÀÉ»¡©ú
         ½Ðª¾¹Dªº«e½ú,¤£§[½ç±ÐÁÂÁ¦A¤T!!

leov55.rar (14.55 KB)

¦^´_ 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

TOP

¦^´_ 1# myleoyes
§AµLªk¨úªº¤@­Ó¦h½d³òªº­È
Sub ´£¥Ü()
    Set c = [G3:G36]
    If Application.WorksheetFunction.CountIf(c, "<=0") Then MsgBox "³o¬O·¥°ª­·ÀIªº§ë¸ê¤è®×¡I½Ð­«·sµû¦ô¡I¡I"
End Sub
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Option Base 0          ->  ¹w³]ªº¦b¼Ò²Õ¼h¦¸¤¤¥Î¨Ó«Å§i°}¦C¯Á¤Þªº¹w³]¤U­­¡C
Sub ´£¥ÜA()
    Dim myRng(1) As Range   '->Dim myRng(0 to 1) As Range
  '
  '
  Dim myRng(2) As Range       ->­«½Æ«Å§iÅܼƠ     
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Option Base 1
Sub ´£¥ÜA()
    Dim myRng(1) As Range   '->Dim myRng( 1  to 1) As Range
    '
    '
    Dim myRng(2) As Range       ->­«½Æ«Å§iÅܼƠ        

TOP

        ÀR«ä¦Û¦b : Ä@­n¤j¡B§Ó­n°í¡B®ð­n¬X¡B¤ß­n²Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD