How to use python win32com to save as excel file

2019-02-18 08:26发布

问题:

I have a small python code to open an Excel file. Now I want to "Save As" with a different name but same format. How do I do that.. Any help will be great. FK

回答1:

Here is a tutorial on using the win32com API with Excel and here is the COM method you will likely have to call, Workbook.SaveAs. And here is an example of actually making the call.