拆分excel工作薄里的多个工作表为多个工作薄

2018年1月23日16:17:22 发表评论 866 views

Sub SaveSeparately()

Dim sht As Worksheet

Application.ScreenUpdating = False

ipath = ThisWorkbook.Path & "\"

For Each sht In Sheets

sht.Copy

ActiveWorkbook.SaveAs ipath & sht.Name & ".xls"

ActiveWorkbook.Close

Next

Application.ScreenUpdating = True

End Sub

本文是全系列中第8 / 9篇:Excel

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: