Sub ExportSheets()
Dim wsh As Worksheet
Dim strPath As String
strPath = ThisWorkbook.Path & "\"
For Each wsh In ActiveWindow.SelectedSheets
wsh.Copy
With ActiveWorkbook
.SaveAs strPath & wsh.Name & ".xlsx", FileFormat:=xlOpenXMLWorkbook
.Close
End With
Next wsh
End Sub
将sheet批量保存为单独表格的代码
-
-
字
2022-06-09
“您的支持是我持续分享的动力”
微信
支付宝