- ©«¤l
- 678
- ¥DÃD
- 147
- ºëµØ
- 0
- ¿n¤À
- 799
- ÂI¦W
- 0
- §@·~¨t²Î
- win 8
- ³nÅ骩¥»
- MS 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2016-2-9
- ³Ì«áµn¿ý
- 2022-1-20
|
¥»©«³Ì«á¥Ñ ziv976688 ©ó 2017-10-21 19:10 ½s¿è
¦^´_ 12# naruto018 - '¾÷²vªí...........
- Else
- GoTo 101
- Sheets.Add
- ActiveSheet.Name = "¾÷²vªí"
- Sheets(1).Cells.RowHeight = 20 '¦C°ª
- ActiveWindow.Zoom = 75 'ÁY©ñ
- Sheets(1).Range("B2").Select
- ActiveWindow.FreezePanes = True
- With Sheets(1).[A1:F50]
- .HorizontalAlignment = xlCenter
- .Font.FontStyle = "²ÊÅé"
- .Font.Size = 14
- End With
- Sheets(1).[A1:F50].Font.Name = "Arial"
- Sheets(1).[a1] = "±À´ú¼Æ¦r"
- Sheets(1).[A1:A50].Font.ColorIndex = 7
- Sheets(1).[A1:A50].NumberFormatLocal = "00"
- Sheets(1).[B1] = "¦¸¼Æ"
- Sheets(1).[B1:B50].Font.ColorIndex = 11
- Sheets(1).[C1] = "¤¤¼ú¼Æ¦r"
- Sheets(1).[C1:C8].Font.ColorIndex = 3
- Sheets(1).[C1:C8].NumberFormatLocal = "00"
- Sheets(1).[D1] = "¤¤¼ú¾÷²v"
- Sheets(1).[D2] = "=Count(C2:C8)/Count(A2:A50)"
- Sheets(1).[D1:D2].Font.ColorIndex = 3
- Sheets(1).[D2].NumberFormatLocal = "0.0%"
- Sheets(1).Range("D2").Borders.LineStyle = xlContinuous
- n = 1: m = 1: o = 1
- For i = 1 To 49
- If Msrr(i) > 0 Then
- n = n + 1
- Sheets(1).Cells(n, "A") = i
- Sheets(1).Cells(n, "B") = Msrr(i)
- If Urr(i) > 0 Then Sheets(1).Cells(n, "A").Interior.ColorIndex = 4
- End If
- If Urr(i) > 0 Then
- m = m + 1
- Sheets(1).Cells(m, "C") = i
- End If
- Next
- If Sheets(2).Range("H" & In2rr(numh) + 6) <> "" Then
- 'For Each a In Sheets(1).Range("C2:C8")
- If a = "" Then Exit For
- If Application.CountIf(Sheets(2).Range("H" & In2rr(numh) + 6), a) Then: a.Interior.ColorIndex = 8
- 'Next
- End If
- With Sheets(1).Range("C1:C" & m)
- .Borders.LineStyle = xlContinuous
- End With
- With Sheets(1).Range("A1:B" & n)
- .Borders.LineStyle = xlContinuous
- End With
- With Sheets(1) 'Âù±Æ§Ç
- .Columns("A:B").Sort Key1:=.[B2], Order1:=xlDescending, Key2:=.[a2], Order2:=xlAscending, Header:=xlGuess
- End With
-
- Sheets(1).Columns("A:E").EntireColumn.AutoFit '¦Û°ÊÄæ¼e
- Erase Msrr, Urr '²M°£¾÷²vªí°O¿ý
- Sheets("¾÷²vªí").Move
- ActiveWorkbook.SaveAs mypath1 & "\49AC¾÷_" & Numberx & "_" & Inlog(LOGN - 1) & "_" & In2rr(numh) & "-" & In1rr(N1 - 1) & ".xls"
- ActiveWindow.Close
- '.......................................................................
-
- 101:
½Æ»s¥N½X n¤j:±z¦n!ÁÂÁ±zªº¦A¦¸«ü¾É¡C¥Ø«e¤p§Ì¥HTEST(1021)ªº´ú¸Õª¬ªp¬O:
¦bElse(¦C208)¤U¤è´¡¤JGoTo 101(¦C209),¦b¦C271´¡¤J101:´ú¸Õ=>·|°±¦b¦C249 For Each a In Sheets(1).Range("C2:C8")
ªí¥Ü¦C210~¦C268ªºµ{¦¡½XÁÙ¬O¦³³Q°õ¦æ¡C
±N¦C249©M¦C252 Next ÂIºñ¤£°õ¦æ=>´NOKªº
¦ý¨Æ¹ê¤W¦C210~¦C268ªºµ{¦¡½XÁÙ¬O¦³³Q°õ¦æ¡C
PS:¥N½X¦C2=½d¨ÒÀɦC208¡F¥N½X¦C65=½d¨ÒÀɦC279
½d¨ÒÀÉ:
TEST(1021).rar (50.36 KB)
|
|