如何使用xlwings删除Excel筛选器

2024-10-06 12:33:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用xlwings(0.21.4)使用外部来源的数据更新电子表格。除非任何图纸包含过滤器,否则更新工作正常。我正在寻找一种在工作簿中的各个工作表中禁用筛选器的方法。我见过其他类似的帖子,其中推荐的解决方案是将workbook.sheet.api.AutoFilterMode设置为False或使用workbook.sheet.api.ShowAllData。但是,这两个都不在api中。唯一可用的元素是“after”、“any”、“before”、“start”、“beginswith”、“contains”、“doesnotbeginwhith”、“doesnotcontain”、“doesnotendwhith”、“end”、“endswith”、“first”、“help”、“isin”、“isnotin”、“isrunning”、“last”、“middle”、“next”、“previous”和“relaunchmode”。我错过了什么


Tags: 数据方法apifalse过滤器来源解决方案xlwings