Is there a way to use the column name instead of using the Excel coordinates?
Example:
Add-ConditionalFormatting -Address $WorkSheet.Cells["P:P"] -WorkSheet $WorkSheet -RuleType 'Expression' 'NOT(ISERROR(FIND("Keyword",$P1)))' -BackgroundColor Red
When I add an additional column or when the order of the columns changed the conditional formatting is broken. I would prefer working with the column names like directly in PowerShell.
Thank you!
Is there a way to use the column name instead of using the Excel coordinates?
Example:
Add-ConditionalFormatting -Address $WorkSheet.Cells["P:P"] -WorkSheet $WorkSheet -RuleType 'Expression' 'NOT(ISERROR(FIND("Keyword",$P1)))' -BackgroundColor RedWhen I add an additional column or when the order of the columns changed the conditional formatting is broken. I would prefer working with the column names like directly in PowerShell.
Thank you!