- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¥»©«³Ì«á¥Ñ stillfish00 ©ó 2013-4-26 20:52 ½s¿è
6¤£¤ÓÀ´ , §A¸Õ¬Ý¬ÝÁÙ¦³¤°»ò°ÝÃD- Sub paper2()
- Workbooks(ThisWorkbook.Sheets("VBA").[A2].Value).Sheets("³øªí").Range("D:K").Copy '½Æ»sDÄæ¨ìKÄæ
-
- With Workbooks.Add '·s¼W¤@ªÅ¥Õ¬¡¶Ã¯
- With .Sheets(1)
- .Name = "³øªí"
- .[A1].PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False '¶K¤WÈ
- .[A1].PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone, SkipBlanks:=False, Transpose:=False '¶K¤W¨Ó·½®æ¦¡
-
- '¤pp
- .[A2].Subtotal GroupBy:=1, Function:=xlSum, TotalList:=Array(7, 8), _
- Replace:=True, PageBreaks:=False, SummaryBelowData:=True
-
- .[A:A].Delete Shift:=xlToLeft '¤pp«á§R°£AÄæ
- .Outline.ShowLevels RowLevels:=2 '¤pp«á¿ï#2
- End With
- .SaveAs "D:\©â¤ô¾÷¼Æ¾Ú¤ÀªR³øªí\©â¤ô¾÷¼Æ¾Ú¤ÀªR_È.xlsx" 'Àx¦sÀÉ®×
- .Close
- End With
-
- 'Ãö³¬ÀÉ®×
- Workbooks(ThisWorkbook.Sheets("VBA").[A2].Value).Close False
- ThisWorkbook.Close False
- End Sub
½Æ»s¥N½X ¦^´_ 1# PJChen |
|