in reply to Win32::OLE Excel Conditional Formatting error
To gain access to the xl* family of constants, Win32::OLE::Const allows you to
use Win32::OLE::Const 'Microsoft Excel';
To use those constants in your call, you need to run
$rangeFormat->FormatConditions->Add({Type=>xlCellValue, Operator=>xlNo +tEqual, Formula1=>"=TRUE"})
When I made those two changes to your code, I was able to see conditional formatting in the spreadsheet your code created.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::OLE Excel Conditional Formatting error
by slick.user (Acolyte) on Feb 29, 2024 at 21:32 UTC |