in reply to Re^2: Win32::OLE Excel Conditional Formatting error
in thread Win32::OLE Excel Conditional Formatting error

It looks like you need to use numeric values for Type and Operator in FormatConditions->Add. For example
$rangeFormat->FormatConditions->Add({Type=>1, Operator=>4, Formula1=>" +=TRUE"}); $rangeFormat->FormatConditions(1)->Font->{Color} = -16776961;
makes cells in the first column red except A4 and A9. Here are the codes for Type and Operator.

Replies are listed 'Best First'.
Re^4: Win32::OLE Excel Conditional Formatting error
by slick.user (Acolyte) on Feb 29, 2024 at 21:29 UTC
    Awesome, thank you!