Sub 工作簿拆分()
'将EXCEL工作簿按工作表拆分为工作簿
Dim PATH As String
PATH = Application.ActiveWorkbook.PATH
Dim sht As Worksheet
Application.ScreenUpdating = False
For Each sht In Sheets
sht.Copy
ActiveWorkbook.SaveAs PATH & "\" & sht.Name & ".xlsx" '(工作表名称文件名)
ActiveWorkbook.Close
Next
Application.ScreenUpdating = True
End Sub
Sub UnhideAllSheets()
For Each Sheet In ActiveWorkbook.Sheets
Sheet.Visible = True
Next
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
End Sub
本文来源:https://www.wddqw.com/doc/a0ac23a8adaad1f34693daef5ef7ba0d4a736d94.html
正在阅读:
VBA EXCEL拆分工作表为工作薄01-01
发朋友圈的精美图片句子-唯美句子01-01
律诗和绝句的区别 01-01
男女婚配属相相克表01-01
借入方、借出方、担保方三方的借款合同范文01-01
美国留学:JD是比较难申请的学位01-01
高一日语新学期教学计划书01-01
实践的形式与简介实践的基本形式01-01
发表论文常规的字体与字号01-01