Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88066

Filter cells based on the BackgroundColor

$
0
0

I'm having big brain problem figuring out filtering by color using ClosedXML.

I've recently moved from Interop.Excel to ClosedXML, due to project shifting in my workplace. When we were using Interop.Excel, the filtering was fairly easy and in fact, only one line of code was sufficient:

.ActiveSheet.Range([Range]).AutoFilter(Field:=[Field], Operator:=Microsoft.Office.Interop.Excel.XlAutoFilterOperator.xlFilterNoFill)

Now with ClosedXML I cannot figure out how to filter the file by color, also the documentation doesn't provide any steps on how to do it and I was unable to find any cases of similar problem on the internet.

Could you please help newcomer?


Viewing all articles
Browse latest Browse all 88066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>