- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2025-1-10
|
¦^´_ 1# coafort
½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test()
Arr = Range("a1:e7") '¸ê®Æ½d³ò
Cells.Interior.ColorIndex = 0 'µLÃC¦â
For j = 1 To UBound(Arr, 2): For i = 2 To UBound(Arr)
If UCase(Arr(i, j)) = "A" Then Cells(i, j).Interior.ColorIndex = 3
If UCase(Arr(i, j)) = "B" Then Cells(i, j).Interior.ColorIndex = 6
If UCase(Arr(i, j)) = "C" Then Cells(i, j).Interior.ColorIndex = 5
Next i: Next j
End Sub |
|