How to use python win32com to save as excel file

随声附和 提交于 2019-12-19 03:36:57

问题


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.



来源:https://stackoverflow.com/questions/1742471/how-to-use-python-win32com-to-save-as-excel-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!