[英]How can I filter a whole column in excel using C# that CONTAINS some value like “ODM”?
Does anybody know how to filter a column of excel using the INTEROP C#, and filter all the values that contains 'ODM', or 'AAS'.有谁知道如何使用 INTEROP C# 过滤 excel 列,并过滤所有包含“ODM”或“AAS”的值。 I've already tried to use the namedRange.autofilter but it returns just those VALUES that is write ONLY 'ODM' or 'AAS' and nothing else.我已经尝试使用 namedRange.autofilter 但它只返回那些只写“ODM”或“AAS”的值,没有别的。
This link seems to indicate Excel filters do not support regex. 此链接似乎表明 Excel 过滤器不支持正则表达式。 My own experience resonates with that.我自己的经历与此产生了共鸣。 So, taking a step back, how can we solve your problem?那么,退后一步,我们如何解决您的问题? Well, looking at what the VBA guys did , the idea seems to be as follows:好吧,看看VBA 的家伙做了什么,想法似乎如下:
I'm not going to code that for you, but I'm quite certain the above approach will work and am happy to consult with you if you need assistance on it.我不会为你编写代码,但我很确定上述方法会奏效,如果你需要帮助,我很乐意与你协商。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.