Sub 拆分表格()
Dim i&, iBT$, irow&, iNm$, k%
iBT = InputBox("请输入标题的行数:" & vbLf & vbLf & "如没标题有请填0", "标题行数", 1)
If iBT = "" Then Exit Sub
iNm = ActiveSheet.Name
irow = Range("A" & Rows.Count).End(3).Row
For i = Val(iBT) + 1 To irow Step 1000
k = k + 1
Sheets.Add after:=Sheets(Sheets.Count)
Sheets(Sheets.Count).Name = "数据表-" & k
If Val(iBT) > 0 Then Sheets(iNm).Rows("1:" & iBT).Copy Range("A1")
Sheets(iNm).Rows(i & ":" & i + 1000 - 1).Copy Range("A" & Val(iBT) + 1)
Next
Sheets(iNm).Select
MsgBox "处理完毕!", , "提示"
End Sub
Dim X, I, R
X = (Range("A65536").End(xlUp).Row - 1) / 1000
For I = 1 To X
Sheets.Add After:=Sheets(Sheets.Count)
Sheets(Sheets.Count).Name = I
Next
For k = 2 To Range("A65536").End(xlUp).Row Step 1000
n = n + 1
Sheets(n + 1).Select
arr = Range(Cells(k, "a"), Cells(k + 9, "H"))
brr = Range("a1:h1")
Sheets(n + 1).[A1].Resize(1, 8) = brr
Sheets(n + 1).[A2].Resize(10, 8) = arr
Next
End Sub