R
richardtallent
My Google search came up dry...
Conditional Formatting rules are *supposed* to treat formulas as array
formulas.
But when loading an XML Spreadsheet file, conditional formatting rules
are *not* treated as array formulas, thus breaking the formatting. At
least in Excel 2003, haven't tested others.
Workarounds I've considered:
- After loading, select the the formatted range, go to Format :
Conditional Formatting, and hit OK. Then it works fine, no
modification to formulas needed. (not an option here, unsophisticated
users)
- Use the native Excel format (not an option here, server-generated
content)
- Upgrade to Office 2007 and the newer XML format (not an option here,
corporate thing)
- Avoid array formulas in conditional formatting rules (not an option
here, need multiple conditions and too many cells to use )
- Use a UDF in the conditional formatting rules (doesn't work--XML
Spreadsheets can't have UDFs, and conditional formatting rules can't
refer to add-in UDFs).
The only other thing I can think of would be a macro in a separate add-
in file that would select each range with conditional formatting and
re-apply it somehow.
Any ideas for other workarounds, or a hint on the code to try to re-
apply the conditional formatting ranges?
Conditional Formatting rules are *supposed* to treat formulas as array
formulas.
But when loading an XML Spreadsheet file, conditional formatting rules
are *not* treated as array formulas, thus breaking the formatting. At
least in Excel 2003, haven't tested others.
Workarounds I've considered:
- After loading, select the the formatted range, go to Format :
Conditional Formatting, and hit OK. Then it works fine, no
modification to formulas needed. (not an option here, unsophisticated
users)
- Use the native Excel format (not an option here, server-generated
content)
- Upgrade to Office 2007 and the newer XML format (not an option here,
corporate thing)
- Avoid array formulas in conditional formatting rules (not an option
here, need multiple conditions and too many cells to use )
- Use a UDF in the conditional formatting rules (doesn't work--XML
Spreadsheets can't have UDFs, and conditional formatting rules can't
refer to add-in UDFs).
The only other thing I can think of would be a macro in a separate add-
in file that would select each range with conditional formatting and
re-apply it somehow.
Any ideas for other workarounds, or a hint on the code to try to re-
apply the conditional formatting ranges?