我已经使用Python xlwings向现有的Excel工作表中添加了新工作表.我想在新表中将行高设置为15.我该怎么办??
I have added new sheet to existing excel sheet using Python xlwings. I want to set row height to 15 in new sheet. How can I do that.?
如所述缺少功能,您始终可以下拉至pywin32并查看 VBA文档.
As explained under Missing Features, you can always drop down to pywin32 and check out the documentation for VBA.
在您的情况下,它将像这样工作:
In your case, it would work like this:
import xlwings as xw wb = xw.Book(...) wb.sheets[0]['1:1'].api.RowHeight = 100
这篇关于如何使用Python xlwings设置行高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程技术网(www.editcode.net)!