- ©«¤l
- 561
- ¥DÃD
- 160
- ºëµØ
- 0
- ¿n¤À
- 725
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS
- ³nÅ骩¥»
- xp
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2014-9-10
- ³Ì«áµn¿ý
- 2024-8-7
  
|
dear all ¤j¤j
´M§ä«e½ú½d¨Ò.¤w§ä¥Xµª®×¦p¤U thanks*10000
Sub Ex()
Sheet6.Visible = True
Sheet6.Select
Range("A1").Select
Sheet6.[A2:C65536].ClearContents
Dim R As Long, C As Long, Cmax As Integer
With ActiveSheet.Range("A1").CurrentRegion
.Cells.Interior.ColorIndex = xlNone
For R = 2 To .Rows.Count
C = 5
Do While C <= .Columns.Count
Cmax = 0
Do While .Cells(R, C + Cmax) <> ""
Cmax = Cmax + 1
Loop
If Cmax >= 5 Then .Cells(R, 1).Value = "T"
C = C + 1 + Cmax
Loop
Next
For R = 2 To .Rows.Count
C = 5
Do While C <= .Columns.Count
Cmax = 0
Do While .Cells(R, C + Cmax) <> ""
Cmax = Cmax + 1
Loop
If Cmax >= 6 Then .Cells(R, 2).Value = "T"
C = C + 1 + Cmax
Loop
Next
For R = 2 To .Rows.Count
C = 5
Do While C <= .Columns.Count
Cmax = 0
Do While .Cells(R, C + Cmax) <> ""
Cmax = Cmax + 1
Loop
If Cmax >= 7 Then .Cells(R, 3).Value = "T"
C = C + 1 + Cmax
Loop
Next
End With
End Sub |
|