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

[µo°Ý] §PÂ_¼Æ¾Ú½d³ò¨Ã¤W¦â

[µo°Ý] §PÂ_¼Æ¾Ú½d³ò¨Ã¤W¦â

¦U¦ì¥ý¶i

§Ú¦³¤@­ÓVBA°ÝÃD·Q°Ý:

§Ú¦³¤@°ï¼Æ¾Ú, ½d³ò±q­t¼Æ¨ì¥¿¼Æ³£¦³, §Ú­pµe­n¼g¤@­Ó¥¨¶°¥h°Ï¤À½d³ò¨Ã¤W¦â,

¦ý¬O§Úµo²{¦b­t¼Æ¨ì0ªº½d³ò¤ºªº¼Æ¾ÚµLªk¤ÀÃþ,

¦³¿ìªk¥i¥HÀ°À°§Ú¶Ü??

§Ú¤]¬Ýªº²´ªáÁA¶Ã¡A¤£¹L¥Îifª½±µ§PÂ_«á¡A¼gcells(i,2)=cells(i,2)("f§ï¦¨§A­nÅܦ¨ªºÃC¦â")¡A³o¼ËÅÞ¿èÀ³¸Ó¥i¥H¸Õ¸Õ¡C

TOP

¦h­«ªºif§PÂ_¦¡¬Ý±o²´ªáÁA¶Ã¡A³Ì¦n§âÀɮפW¶Ç§a¡I

TOP

¦^´_ 6# GBKEE

¦U¦ì¦n.....
¥H¤U¬O§Úªºµ{¦¡½X

§Ú¬O¥Î³o­Óµ{¦¡¥h°õ¦æ°Ï¤À¤Î¤W¦âªº¥ô°È

¦ý¬O§Úµo²{¼Æ¾Ú½d³ò¦b0¥H¤Î­t¼Æ®ÉµLªk°Ï¤À...
    Sub run_map()
'
' run_map Macro
' Administrator ¦b 2010/9/17 ¿ý»sªº¥¨¶°
'
Dim myresult(20, 20) As Long
    Dim x, y As Long
    Dim SH, SL, R1, R2, R3, R4 As Long
    SH = Range("D14").Value
    SL = Range("D15").Value
    R1 = Range("D16").Value
    R2 = Range("F16").Value
    R3 = Range("H16").Value
    R4 = Range("J16").Value
   
    For x = 4 To 13
    For y = 5 To 17
    myresult(x, y) = Cells(x, y).Value
    Next y
    Next x
    For x = 4 To 13
    For y = 5 To 17
        
    If myresult(x, y) = False Then
    Cells(x, y).Interior.ColorIndex = 2
   
    Else
   
    If myresult(x, y) >= SL And myresult(x, y) < R1 Then
    Cells(x, y).Interior.ColorIndex = 35
   
    ElseIf myresult(x, y) >= R1 And myresult(x, y) < R2 Then
    Cells(x, y).Interior.ColorIndex = 36
   
    ElseIf myresult(x, y) >= R2 And myresult(x, y) < R3 Then
    Cells(x, y).Interior.ColorIndex = 44
   
    ElseIf myresult(x, y) >= R3 And myresult(x, y) < R4 Then
    Cells(x, y).Interior.ColorIndex = 45
   
    ElseIf myresult(x, y) >= R4 And myresult(x, y) <= SH Then
    Cells(x, y).Interior.ColorIndex = 46
   
    Else
    Cells(x, y).Interior.ColorIndex = 3
   
    End If
   
    End If
    Next y
    Next x
   
  
   
End Sub

TOP

§Ú·Q°Ï¤Àªº½d³ò¬O-3<, -3~-1,-1~1,1~3, >3
colin105 µoªí©ó 2010-10-25 20:12

¥i¥H¬Ý¬Ý [ ¤ñ¸û¹Bºâ¤l] VBA»¡©ú

TOP

-1~1
>=-1 and <=1
³o¬O¥]§t0ªº...
­Y¬O§Ú¦^µª¡A¨Ï±zº¡·N¡A½Ð±zÅý§Úª¾¹D¡I                  
­Y¬O§Úªº¦^ÂСA±z¤´¦³¨ä¥L¨£¸Ñ¡A¤]½Ð±z¤£¶Þ«ü±Ð¡I

TOP

¦^´_ 3# colin105


    -3~-1,-1~1,1~3??
-1©M1¦P®É¦³2°Ï,§A·Q¤°»ò¤À?
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 2# Hsieh


    ¯u¬O¤£¦n·N«ä...¥ý»¡©ú¤@¤U

§Úªº¼Æ¾Ú½d³ò¬O-4~4, §Ú·Q°Ï¤Àªº½d³ò¬O-3<, -3~-1,-1~1,1~3, >3

§Ú¥ý±N³o¨Ç¼Æ¾Ú«ü¦V¤@­Ó°}¦C, ¦A°µ°Ï¤À,¥i¬O§Úµo²{¦b¤p©ó0ªº°Ï°ì¬OµLªk¤ÀÃþªº...

³o¬O§Ú·Qµo°Ýªº°ÝÃD

TOP

­t¼Æ¨ì0ªº½d³ò?
<0´N­t¼Æ
=0´N0
>0´N¥¿¼Æ
¦³¬Æ»ò¬O¤£¯à§PÂ_?
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¡i¬O§_µo´§¤F¨}¯à¡H¡j¤H¶¡¹Ø©R¦]¬°µu¼È¡A¤~§óÅã±o¬Ã¶Q¡CÃø±o¨Ó¤@½ë¤H¶¡¡AÀ³°Ý¬O§_¬°¤H¶¡µo´§¤F¦Û¤vªº¨}¯à¡A¦Ó¤£­n¤@¨ý¨Dªø¹Ø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD