excel拆分工作表
2021-05-09 本文已影响0人
Quick_5413
注意:保存文件的名称不要重复
Sub 拆分工作表()
For Each sht In ThisWorkbook.Worksheets
sht.Copy
ActiveWorkbook.SaveAs Filename:=ThisWorkbook.Path & "" & sht.Name & ".xlsx"
Next
End Sub
注意:保存文件的名称不要重复
Sub 拆分工作表()
For Each sht In ThisWorkbook.Worksheets
sht.Copy
ActiveWorkbook.SaveAs Filename:=ThisWorkbook.Path & "" & sht.Name & ".xlsx"
Next
End Sub