- ©«¤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
|
¦^´_ 14# GBKEE
ªí¹F¤W¥i¯à¦³¨Ç¤£²M·¡
¤£¹L¤j¤jªº¤è¦¡§Ú§ï¹L¤w¸g¬O§Únªº
¥u¬O¤£ª¾¹D§Ú³o¼Ë§ï¨Æ¤£¬O³Ì¨Îªº¤è¦¡
ªþ¤W§Únªº§¹¦¨«~
¤S¾Ç¨ì·sªF¦è
ÁÂÁÂ- Sub up()
- Application.ScreenUpdating = False
- Dim Rng As Range, X As Range, R As Range, Tolta%, A%, i%, ii%
- With Cells
- .Interior.ColorIndex = xlNone
- .Font.ColorIndex = 0
- .Font.Bold = False
- End With
- Set Rng = Range("C5:AD" & [A65536].End(xlUp).Row)
- For Each R In Rng.Rows
- Set Rng = R.Cells(1)
- A = 0
- Set Rng = R.Cells(1, 0).End(xlToRight)
- Rng.Interior.ColorIndex = 0
- Y = [iv4].End(xlToLeft).Column - 1
- For ii = 2 To 28
- If R.Cells(1, ii) <> "" And Rng < R.Cells(1, ii) Then
- Set Rng = R.Cells(1, ii)
- With R.Cells(1, ii).Font
- .ColorIndex = 7
- .Bold = True
- End With
- A = A + 1
- With R.Cells(1, Y)
- .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)
- End If
- Next
- Next
- End Sub
½Æ»s¥N½X
²ÎpÃC¦â.rar (10.83 KB)
|
|