Issue 128100 - Comments are disabled if you use the STYLE() function in Conditional Formatting
Summary: Comments are disabled if you use the STYLE() function in Conditional Formatting
Status: CLOSED DUPLICATE of issue 109243
Alias: None
Product: Calc
Classification: Application
Component: ui (show other issues)
Version: 4.1.6
Hardware: Mac macOS 10.14
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-25 13:15 UTC by Andy
Modified: 2019-04-25 14:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
STYLE() function disabling comments in Conditional Formatting (13.75 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-04-25 13:15 UTC, Andy
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Andy 2019-04-25 13:15:17 UTC
Created attachment 86668 [details]
STYLE() function disabling comments in Conditional Formatting

If you use the STYLE() function in ANY Conditional Formatting formula, it stops all comments on the spreadsheet from appearing when you hover your pointer over them.

My initial aim was to write a Conditional Formatting formula that changed the cell colour depending on the words in it. I had five different words, each associated with a different colour. Given that this is more than the three Conditional Formatting conditions allowed, I therefore wrote a single formula using a bunch of nested IF functions to change the colour appropriately using the STYLE() function. This worked well but had the peculiar unwanted side-effect of disabling all my comments.

I have included a simple attachment to demonstrate this, as follows:

(a) In the attachment, Column A has a Conditional Formatting formula whereby the cells turn blue if they contain the word "Weekly". You will notice that the cells HEADING 1, HEADING 2 and HEADING 3 will not show their comments if you hover over them.

(b) If you now select Column A, then choose Format -> Conditional Formatting..., then remove the formula there, you will be able to see the comments again if you hover over the three HEADING cells.

(c) In fact, this disabling of the comments happens even if you apply the Conditional Formatting formula to just a single cell.

(d) The comments also return if you switch off AutoCalculate, but then the Conditional Formatting fails to work, so of course that is not an acceptable solution.

As far as I can tell, it does appear to be the STYLE() function that's causing this peculiar behaviour (vs. e.g. the IF function).
Comment 1 oooforum (fr) 2019-04-25 14:10:27 UTC
Already reported

*** This issue has been marked as a duplicate of issue 109243 ***