返回列表 上一主題 發帖

請問如何將工作表分另儲存成不同檔案

請問如何將工作表分另儲存成不同檔案

請問各位高手

請問能否跟據下面資料
將有關工作表另存成個別檔案,例如:
檔案AA 包括 工作表AA, sheet1, sheet2, sheet3
檔案BB 包括 工作表AA, sheet4, sheet5, sheet6, sheet7, sheet8

工作表1        工作表2
AA        sheet1
AA        sheet2
AA        sheet3
BB        sheet4
BB        sheet5
BB        sheet6
BB        sheet7
BB        sheet8

請多多指教

匯出檔案.zip (14.48 KB)

Hsieh

謝謝你
但還有少少問題,
當重新執行巨集時,
因為檔已存在而出現ERROR
請問如何可以自動取代現有檔案

enoch

TOP

Hsieh

謝謝你,問題已解決

enoch

TOP

若果同一問題,但有部份不是工作表, 而是檔案可以嗎?
例如:
檔案AA 包括 工作表AA, sheet1, sheet2, book1.xls
檔案BB 包括 工作表AA, sheet4, sheet5, sheet6, book2.xls, book3.xls

工作表1        工作表2
AA        sheet1
AA        sheet2
AA        book1.xls
BB        sheet4
BB        sheet5
BB        sheet6
BB        book2.xls
BB        book3.xls

TOP

        靜思自在 : 人要自愛,才能愛普天下的人。
返回列表 上一主題