- ©«¤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-20 20:10 ½s¿è
¦^´_ 1# ziv976688
2017-1020-Q-1 -.rar (96.21 KB)
ìªþÀɵ{¦¡½X¤Óªø~«·s¤W¶ÇªþÀÉ©M»¡©ú:
If a = INnum(N2 - 1) Then '¤ñ¹ï´Á¼Æªº¦C '¦C178
Sheets.Add
ActiveSheet.Name = "Sheet1"
ActiveWindow.Zoom = 75 'ÁY©ñ
' ½Æ»s"Sheet1"¤º®e
[A4].Resize(3, 79).Copy Sheets("Sheet1").Cells(4, 1) '½Æ»sDATA=A4:CA6¶K¤WA4
Cells(In1rr(N1 - 1) + 6, 1).Resize(In2rr(numh) - In1rr(N1 - 1) + 1, 1).Copy Sheets("Sheet1").Cells(7, 1) '½Æ»sDATA=A&StrRng¨ìA&mthcount´Á¼Æ¶K¤WA7
Cells(In1rr(N1 - 1) + 6, 2).Resize(In2rr(numh) - In1rr(N1 - 1), 7).Copy Sheets("Sheet1").Cells(7, 2) '½Æ»sDATA=B&StrRng¨ìH&mthcount-1´Á¼Æ¶K¤WB7
Cells(a.Row + 1, 1).Resize(In2rr(numh) - a.Row + 6, 1).Copy Sheets("Sheet1").Cells(7, 9) '½Æ»sDATA=AÄæ¤ñ¹ï´Á¼Æ+1¨ìmthcount´Á¼Æ¶K¤WI7
Cells(a.Row + 1, 2).Resize(In2rr(numh) - a.Row + 5, 7).Copy Sheets("Sheet1").Cells(7, 10) '½Æ»sDATA=B:HÄæ¤ñ¹ï´Á¼Æ+1¨ìmthcount´Á¼Æ¶K¤WJ7
Cells(In1rr(N1 - 1) + 6, 1).Resize(a.Row - In1rr(N1 - 1) - 5, 8).Copy Sheets("Sheet1").Cells(In2rr(numh) - a.Row + 13, 9) '½Æ»sDATA=A:HÄæ°_©l´Á¼Æ¨ì¤ñ¹ï´Á¼Æ¶K¤WI & mthcount-¤ñ¹ï´Á¼Æ+13
a.Copy Sheets("Sheet1").Cells(In2rr(numh) - In1rr(N1 - 1) + 7, a.Column) '½Æ»s·j´MȶK¤Wmthcount´Á¼ÆB:H¦PÄæ
a.Copy Sheets("Sheet1").Cells(In2rr(numh) - a.Row + 12, a.Column + 8) '½Æ»s·j´MȶKmthcount-¤ñ¹ï´Á¼Æ+12¦CªºJ:P¦PÄæ
Sheets("Sheet1").Range("AN5") = Cells(a.Row, 1) '«ü©wªº¦U¤ñ¹ï´Á¼Æ
' ½Æ»s&¦rÅé¼Ð¥Ü
Sheets("Sheet1").Cells(7, 1).Resize(In2rr(numh) - In1rr(N1 - 1) + 1, 8).Copy Sheets("Sheet1").Cells(7, 25) '½Æ»sA:H¶K¤WY
Sheets("Sheet1").Cells(7, 9).Resize(In2rr(numh) - In1rr(N1 - 1) + 1, 8).Copy Sheets("Sheet1").Cells(7, 17) '½Æ»sI:P¶K¤WQ
Sheets("Sheet1").Cells(7, 9).Resize(In2rr(numh) - In1rr(N1 - 1) + 1, 1).Font.ColorIndex = 9 'IÄæ¦rÅé¼Ð¥Ü
Sheets("Sheet1").Cells(7, 17).Resize(In2rr(numh) - In1rr(N1 - 1) + 1, 1).Font.ColorIndex = 10 'QÄæ¦rÅé¼Ð¥Ü
Sheets("Sheet1").Cells(7, 1).Resize(In2rr(numh) - In1rr(N1 - 1) + 1, 32).Copy Sheets("Sheet1").Cells(7, 47) '½Æ»sA:P¶K¤WAU
Sheets("Sheet1").Range("B8").Select
ActiveWindow.FreezePanes = True 'áµ²µøµ¡
Sheets("Sheet1").Move
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs MyPath & "\49AC_" & INnum(N2 - 1) & "_" & Inlog(LOGN - 1) & "_" & In2rr(numh) & "-" & In1rr(N1 - 1) & "-" & Sheets("Sheet1").Range("AN5") & ".xls"
ActiveWindow.Close
'GoTo l01
'¾÷²vªí......................................................................................... '¦C207
Else
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
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
'....................................................................... '¦C240
'101:
End If '¦C244
...................
...................
...................
End Sub '¦C255
³Ì¥Dn¬O¦C207~¦C240(¾÷²vªí)ªº³¡¤À:¦]¬°©|¦³ºÃ°Ý«Ý¨M¡A©Ò¥H·Q¥ý¼È¤£°õ¦æ¡C
½Ð°Ý:
¤£°õ¦æTEST(1020)-B¦C207:240ªºµ{¦¡½X¡A¨äµ{¦¡½XÀ³¦p¦ó¦A½s¼g~
¤~¥i¥Oµ{¦¡½X¥Ñ¦C204ª½±µ¸õ¨ì¦C244(End If)Ä~Äò°õ¦æ(§Y¨ä°õ¦æ®ÄªG=TEST(1020)-A)?
ÁÂÁÂ! |
|