Skip to content

Question: Add-ConditionalFormatting - Using column name instead of Excel coordinates? #1711

@evild3ad

Description

@evild3ad

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions