- ©«¤l
- 586
- ¥DÃD
- 123
- ºëµØ
- 0
- ¿n¤À
- 763
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOW7
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-16
- ³Ì«áµn¿ý
- 2017-3-14
|
¦^´_ 4# GBKEE
³o¨â¤Ñ®³¥X¨Ó¬ã¨s®Éµo²{¦³¨Çµ{¦¡½X¥Îªk¤£¤ÓÀ´
Sub Ex()
Dim Rng As Range, X As Range, R As Range, Tolta%, A%, i%, ii%
Cells.ClearFormats
Set Rng = Range("B2:I" & [A2].End(xlDown).Row)
For Each R In Rng.Rows
Set Rng = R.Cells(1) R.Cells(1)¡÷³oÓ¬O«ü? A = 0
For ii = 2 To 8
If R.Cells(1, ii) <> "" And Rng > R.Cells(1, ii) Then R.Cells(1, ii)³oÓ¸ò¤W±°Ýªº®t²§¦bþ?
Set Rng = R.Cells(1, ii)
R.Cells(1, ii).Font.ColorIndex = 7
Tolta = Tolta + 1
A = A + 1
With R.Cells(1, 10)
.Value = A
.Interior.ColorIndex = 4
End With
ElseIf R.Cells(1, ii) <> "" And Rng < R.Cells(1, ii) Then
Set Rng = R.Cells(1, ii) ³o¤@¾ã¥yªº·N«ä¬O?
End If
Next
Next
[L1] = Tolta
End Sub
¦pªG§Ún±N°»ù§ï¬°º¦»ù¬O¤£¬O¼gªk¤£¤Ó¨Ì¼ËÁÙ¬Oק擄»ò¦a¤è¥i¥H¹F¨ì®ÄªG? |
|