Need help creating a DATABAR conditional format for a cell using macro. Needed to set up the color and range of values
Well, I can copy the format too…
Too general question. And I’ve never used the com.sun.star.sheet.ConditionEntry service.
So what have you tried? Or are you actually asking for someone to write the macro?
I’ve tried com.sun.star.beans.PropertyValue. No, suggest a solution
or give an example …
Is it wright that I can’t safely create (or modify an existing) DataBar’s format in Basic, but only using Python UNO scripts, which can access TableConditionalEntry objects?
As far as I remember, the problem is in the initial creation of the conditional formatting rule of the desired type by the macro. If there is at least one cell with the desired type of conditional formatting, then we can use the macro to copy and change the conditional formatting rule. This does not depend on the programming language.
Here is another example of a macro for conditional formatting “color scale”.