- ©«¤l
- 3
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 4
- ÂI¦W
- 0
- §@·~¨t²Î
- window xp
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-10-24
- ³Ì«áµn¿ý
- 2010-11-12
|
¦^´_ 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 |
|