知识点:字典,主要是item中可以是union(),并进行复制
======代码如下=======
Sub 在一个工作簿内把总表拆分多个工作表()
Dim title_rng As Range,...scripting.dictionary")
With ActiveSheet
On Error Resume Next
col_rng = Application.InputBox("请输入要拆分的列...", , "B", , , , , Type:=2)
If col_rng = "" Then MsgBox "取消了": Exit Sub
'On Error GoTo...)
endrow = Cells.Find("*", Cells(1, 1), xlValues, xlWhole, xlByRows, xlPrevious).Row '计算最后一个工作表的非空行号...endCol = Cells.Find("*", Cells(1, 1), xlValues, xlWhole, xlByColumns, xlPrevious).Column '计算最后一个工作表的非空列号