- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¦^´_ 2# Farnsworth
¦³´XÂI»Ý¨Æ¥ý»¡©úªº:
1. ¦]¬°»y¨t¤£¦PªºÃö«Y,¸ê®Æ¤¤ªºÂ²Åé¦r·|Åܦ¨?, ¾ÉP .Value= ... ¨º¦æ·|¦]¦¹µLªk½áÈ,¬G¸Ó¦æ§Ú¶È¯à¥N´«¦¨©T©wªºÈ¨Ó°µ´ú¸Õ.
2. ¦b Excel ªí®æ¤¤,°£«D·Q«ü©w¤å¦r¤Á³Î¦ì¸m,§_«h¥i¥HÅý Excel ¦Û¤v´«¦æ,
¦¹³B§â (学员«H®§汇总统计) ¤u§@ªí¤¤ªº©Ò¦³¼ÐÃD¤å¦r¥h°£´«¦æ¦r¤¸,¤è«Kµ{¦¡ª½±µ¨ú¥Î.
3. ¦]À³¤Wz 2. ªºª½±µ¨ú¥Î»Ý¨D, §A¶·nקï (学员«H®§汇总统计) ¤u§@ªí¤¤ªº G2 Àx¦s®æ¤º®e (¬ì¥Ø¥|¦X®æ) ¬° (¬ì¥Ø¥|¦X®æ学员) ¤è¯à¶¶§Q®M¥Î.- Sub nn()
- 'G : ¬ì¥Ø¥|¦X®æ学员 .Interior.ColorIndex=10 .font.colorindex=-4105
- 'H : 财务«Ç©Ò¦³¥æ费学员 .Interior.ColorIndex=36 .font.colorindex=41
- 'I : ¦Ò试费710总ªí .Interior.ColorIndex=47 .font.colorindex=44
- 'J : 学员«H®§汇总VIP .Interior.ColorIndex=40 .font.colorindex=53
- 'K : °h学C1 .Interior.ColorIndex=36 .font.colorindex=47
- 'L : 学员«H®§A2B2 .Interior.ColorIndex=6 .font.colorindex=3
- 'M : °h学A2B2 .Interior.ColorIndex=23 .font.colorindex=49
- 'N : °h学VIP .Interior.ColorIndex=4142 .font.colorindex=1
- Dim iCol%
- Dim lRow&
- Dim sStr$
- Dim vD, vInt(), vFnt()
- Dim wsSou As Worksheet, wsTar As Worksheet
-
- Set vD = CreateObject("Scripting.Dictionary")
-
- vInt = Array(10, 36, 47, 40, 36, 6, 23, -4142)
- vFnt = Array(-4105, 41, 44, 53, 47, 3, 49, 1)
-
- Set wsSou = Sheets("学员«H®§汇总")
- Set wsTar = Sheets("学员«H®§汇总统计")
-
- lRow = 3
- With wsTar
- .Range(.Rows(3), .Rows(Rows.Count)).Delete
- .Activate
- End With
-
- With wsSou
- While .Cells(lRow, 1) <> ""
- .Range(.Cells(lRow, 1), .Cells(lRow, 6)).Copy wsTar.Cells(lRow, 1)
- vD(.Cells(lRow, 2) & .Cells(lRow, 3)) = lRow
- lRow = lRow + 1
- Wend
- End With
-
- With Sheets("学员«H®§汇总统计")
- iCol = 7 ' G Column
- Do While .Cells(2, iCol) <> ""
- sStr = .Cells(2, iCol)
- Set wsSou = Sheets(sStr)
- lRow = 2 - (sStr = "学员«H®§汇总VIP")
- With wsSou
- Do While .Cells(lRow, 1) <> ""
- If vD.Exists(.Cells(lRow, 2) & .Cells(lRow, 3)) Then
- With wsTar.Cells(CInt(vD(.Cells(lRow, 2) & .Cells(lRow, 3))), iCol)
- .Value = wsTar.Cells(CInt(vD(.Cells(lRow, 2) & .Cells(lRow, 3))), 2)
- .Interior.ColorIndex = vInt(iCol - 7)
- With .Font
- .ColorIndex = vFnt(iCol - 7)
- .Bold = True
- End With
- End With
- End If
- lRow = lRow + 1
- Loop
- End With
- iCol = iCol + 1
- Loop
- End With
- End Sub
½Æ»s¥N½X |
|