简体   繁体   English

如何使用 python 中的 xlwings 模块复制所有工作表?

[英]How do i copy the all worksheets using xlwings module in python?

I have a macro excel file, it's having 3 worksheets.我有一个宏 excel 文件,它有 3 个工作表。 I need to saveas or copy all worksheets to new excel sheet.我需要另存为或将所有工作表复制到新的 excel 工作表。 How to do in python using xlwing module? python使用xlwing模块怎么办?

Sorry, I cannot comment yet, so I will have to "answer".对不起,我还不能发表评论,所以我必须“回答”。 For pwintypes errors it is many times caused by Trust Center setting issues.对于 pwintypes 错误,很多时候是由信任中心设置问题引起的。 Please see this link https://docs.xlwings.org/en/stable/addin.html .请参阅此链接https://docs.xlwings.org/en/stable/addin.html Also, like NoBlockhit asked, some code would help.此外,正如 NoBlockhit 所问,一些代码会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM