½Ð°Ý¤@Ó»yªk°ÝÃD For I = 1 To Range("§ó·s·s·s").Cells.Count
- ©«¤l
- 40
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 69
- ÂI¦W
- 0
- §@·~¨t²Î
- w7
- ³nÅ骩¥»
- office07
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-4-24
- ³Ì«áµn¿ý
- 2012-8-20
|
½Ð°Ý¤@Ó»yªk°ÝÃD For I = 1 To Range("§ó·s·s·s").Cells.Count
¥»©«³Ì«á¥Ñ m09903020 ©ó 2012-7-5 23:35 ½s¿è
³o¬O¤@ӮѤWªº½m²ßÃD¥Ø
Book1.rar (17.04 KB)
- Option Explicit
- Sub for_next()
-
- Dim I As Integer
-
- Sheets("Sheet2").Select
-
- For I = 1 To Range("§ó·s·s·s").Cells.Count '§ÚÃhºÃ«á±ªº¦Y¤£¶ioffice07
-
- If Range("§ó·s·s·s").Cells(I) > Range("¤j¾÷¾÷¾÷").Cells(I) Then
-
- Range("§ó·s·s·s").Cells(I).Interior.Color = vbYellow
- Else
- Range("§ó·s·s·s").Cells(I).Interior.Color = vbCyan
-
- End If
-
- Next I
- End Sub
½Æ»s¥N½X
½Ð°Ý§Ú³o¸Ì¸Ó«ç»ò´ú¸Õ ©Î §ïµ½
ÁÂÁÂ |
-
-
Sheet2.JPG
(41.07 KB)
°ÝÃDªºSHEET2
|
|
|
|
|
|
- ©«¤l
- 1572
- ¥DÃD
- 16
- ºëµØ
- 2
- ¿n¤À
- 1521
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2016-1-13
|
¦]¬°§A¨S¦³©w¸q¦WºÙ
Range("§ó·s·s·s")¡ARange("¤j¾÷¾÷¾÷")³£n©w¸q¦WºÙ¤~¥Í®Ä¡I |
|
|
|
|
|
|
- ©«¤l
- 40
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 69
- ÂI¦W
- 0
- §@·~¨t²Î
- w7
- ³nÅ骩¥»
- office07
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-4-24
- ³Ì«áµn¿ý
- 2012-8-20
|
¥»©«³Ì«á¥Ñ m09903020 ©ó 2012-7-6 00:08 ½s¿è
¦^´_ 2# oobird
ÁÂÁ´£¥Ü¡F¥i¥H½Ð±z¥Ü½d³oºØ½d³òªº©w¸q¤èªk¶Ü? ÁÂÁÂ- Dim range("¤j¾÷¾÷¾÷") As range
-
- §Ú¦ü¥GÆ[©À¤£¬O«Ü²M·¡n«ç»ò¥Î
- Dim range("§ó·s·s·s") As range
-
- range("¤j¾÷¾÷¾÷") = range(R3C1)
- range("§ó·s·s·s") = range(R3C6)
-
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 40
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 69
- ÂI¦W
- 0
- §@·~¨t²Î
- w7
- ³nÅ骩¥»
- office07
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-4-24
- ³Ì«áµn¿ý
- 2012-8-20
|
¦^´_ 4# chen_cook
¯u¬O©êºp ²{¦b¤~µo²{µo¿ù¦ì¸m
¯u¬O¤£¦n·N«ä! |
|
|
|
|
|
|