Apache OpenOffice (AOO) Bugzilla – Issue 98939
Allow formulas to use multiple style() on cell results
Last modified: 2013-04-05 13:43:37 UTC
Define Bold in Format->Styles and Formatting as a bold font. Leave Default as a regular font. Place this in a cell: ="Hello"&T(STYLE("Default"))&"There"&T(STYLE("Bold")) Notice the whole text ("HelloThere") is bold and not just "There" as expected. There is another Bug Report that covered Styles in general and a user explicitly requested this type of behaviour, namely bug id # 51663. The comment posted by claudiadzm on Thu Dec 13 06:17:27 +0000 2007 should have been in a separate bug id, so I made this one.
Created attachment 80499 [details] Styles and Formatting window "Bold" is not a style name - see attachment. And even if it was, you already defined bold as default beforehand... But changing bold to Heading in your equation affects both words which is wrong.
Sorry for misunderstanding - thought you meant assign bold to default...