I'm currently trying to enter RGB colors in the Excel Autofiter. Does anyone know how this works in Powershell?
$WorkSheet1.Range("A6:AW6").AutoFilter(1,$WorkSheet1.color.rgb(0,255,0), 8)
Thanks
I'm currently trying to enter RGB colors in the Excel Autofiter. Does anyone know how this works in Powershell?
$WorkSheet1.Range("A6:AW6").AutoFilter(1,$WorkSheet1.color.rgb(0,255,0), 8)
Thanks
Please try below code
Instead of defining the XlAutoFilterOperator value (8) by hand, you can also start your code with:
After running this single line, you can use intellisense to get the correct enum values: