execl一个工作薄中有几个个工作表,将这几个个工作表分别保存到不同execl文件中

用宏运行:

Sub QEJebel()
    Dim sh As Worksheet
    Dim Pa As String
    Pa = ThisWorkbook.Path
    For Each sh In ThisWorkbook.Sheets
        sh.Copy
        ActiveWorkbook.SaveAs Pa & "\ " & sh.Name & ".xls"
        ActiveWorkbook.Close
    Next
End Sub

摘自:http://club.excelhome.net/thread-208892-1-1.html

posted @ 2014-03-24 17:43  白糖365  阅读(430)  评论(0编辑  收藏  举报