我的程序是用 c++ 编写的,它可以使用带有 Excel 的 Microsoft OLE。
我想知道是否有任何过程调用或其他东西来删除所有冒号过滤器。
解释:
. A B ...
1 IDs Value ...
2 0 25 ...
3 1 32 ...
... ... ...
Id 和 Value 的下拉框很少。单击这些下拉框我可以选择一个值,下面显示的行将仅包含该特定值的行,隐藏其他行。
所以有时当我打开一个文件时,我是这样的:
. A B ...
1 IDs Value ...
2 0 25 ... //Betwin this line and the line above there are 6 hidden rows.
8 6 15 ...
... ... ...
如何从 OLE 中禁用这些过滤器,以便始终显示所有条目。
如果不可能,是否有任何属性可以知道给定的单元格/范围/行是显示还是隐藏?
我正在从 fileA 中提取范围,然后将其插入到 fileB 中,但是当该行隐藏在 fileA 中时,我得到一个错误。
最佳答案
听起来你想要Worksheet.ShowAllData
.文档说:
Makes all rows of the currently filtered list visible. If AutoFilter is in use, this method changes the arrows to "All."
我不知道“colones filter”是什么,但我假设它是“AutoFilter”。
关于c++ - 使用 OLE 删除 excel 文档中的冒号过滤器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24365766/