表头æå è¡
sheet2åsheet3æ¯éè¦å®æ´å¤å¶å°æ¯ä¸ä¸ªæ°è¡¨ä¸çåï¼
å设æç
§1è¡çæ é¢æ¥åï¼ä»£ç å¦ä¸
Sub aa()
bm = ThisWorkbook.Name
pth = ThisWorkbook.Path
m = Sheets("sheet1").[A200000].End(xlUp).Row
Application.SheetsInNewWorkbook = 1
For i = 0 To Int(m / 100)
With Workbooks.Add
.Sheets("sheet1").Rows(1) = Workbooks(bm).Sheets("sheet1").Rows(1)
Workbooks(bm).Sheets("Sheet2").Copy After:=.Sheets(1)
Workbooks(bm).Sheets("Sheet3").Copy After:=.Sheets(2)
Workbooks(bm).Sheets("sheet1").Rows(1).Copy .Sheets("sheet1").Rows(1)
Workbooks(bm).Sheets("sheet1").Rows((2 + 100 * i) & ":" & (101 + 100 * i)).Copy .Sheets("sheet1").Rows(2)
.SaveAs Filename:=pth & "\" & Format(i, "00000") & ".xlsx"
.Close
End With
Next i
Application.SheetsInNewWorkbook = 3
End Sub
追é®è¿è¡æ示ä¸æ è¶ç
追çåå
¬ä¹æ群54558361.
ä½ çæ°æ®ä¸å
±æå¤å°è¡,å åä¸è¡é½å¨ä¸ä¸ªè¡¨é?
æ¥èªï¼æ±å©å¾å°çåç