- ©«¤l
- 79
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 148
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOW7
- ³nÅ骩¥»
- EXCEL 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2017-5-21
- ³Ì«áµn¿ý
- 2023-3-13
|
¦]¬°°ÝÀY¨ºÓ 210280 »P 210281 ¥u¦³0¸ò1 ±ø¥ó¬On 0 ,1,2,3,4,5,6,7,8,9 ·í³£»ô ¤~²Å¦X±ø¥ó
¥u¬O·Q¾Ç²ß¤@¤U §O¤Hªºªk¤l¬O«ç¼Ë§Ë ÁÂÁÂ
¥H¤U¬O§Úªº¤èªk
Sub TE123ST()
Columns("e:e").Select
Selection.ClearContents
x = 1
Do Until Cells(x, 3) = ""
currentcell = Cells(x, 3)
If Right(currentcell, 1) = "0" Then
For i = 1 To 9
nextcell = Cells(x + i, 3)
If Val(nextcell) <> Val(currentcell) + i Then
Exit For
End If
If Val(nextcell) = Val(currentcell) + 9 Then
Range(Cells(x, 5), Cells(x + 9, 5)).Value = "abc"
Range(Cells(x, 3), Cells(x + 9, 3)).Select
With Selection.Interior
.Pattern = xlSolid
If abc = 34 Then
.PatternColorIndex = xlAutomatic
.ColorIndex = 35
abc = 35
Else
.ColorIndex = 34
abc = 34
End If
End With
End If
Next i
End If
x = x + 1
Loop
End Sub |
|