Ayuda de LibreOffice 26.2
Aplica un estilo a la celda que contiene la fórmula. Tras un tiempo determinado, se puede aplicar otro estilo.
Esta función siempre devuelve el valor numérico 0, lo que permite utilizarla añadiendo la función ESTILO a otras funciones en la misma celda sin que se modifique su valor.
La función ESTILO no debe utilizarse sin una razón de peso; su finalidad es usarla con funciones asíncronas de complementos para notificar visualmente la disponibilidad de un resultado. En casi todos los demás casos, es mejor optar por el formato condicional.
ESTILO("Estilo" [; Tiempo [; "Estilo2"]])
Style is the name of the cell style to be applied to the cell. Style names are not case-sensitive and must be entered in quotation marks.
Time is an optional time range in seconds. After this time is elapsed, the style defined in Style2 is applied. Leave this parameter blank if you do not want the style to be changed.
Style2 is the optional name of a cell style assigned to the cell after the time specified in the Time parameter has passed. If this parameter is missing the "Default" cell style is applied.
En las funciones de LibreOffice Calc, los parámetros marcados como «opcionales» pueden omitirse siempre y cuando no haya ningún parámetro inmediatamente después. Por ejemplo, en una función de cuatro parámetros cuyos dos últimos están marcados como «opcionales», puede omitirse el parámetro 4 o los parámetros 3 y 4; sin embargo, no se puede omitir solamente el parámetro 3.
=10+STYLE("Good",60,"Neutral")
Enters the value 10 into the cell and applies the style named "Good". After 60 seconds, the style "Neutral" is applied.
=A1*A2+STYLE(IF(CURRENT()<100,"Bad","Good"))
Enters the result of multiplying the values in cells A1 and A2 and applies the style "Bad" if the result is less than 100, otherwise the style "Good" is applied. Here the function CURRENT() is used to get the currently evaluated value of the function in the cell.
="Total"&T(STYLE("Result"))
Enters the text "Total" into the cell and applies the style named "Result". Note that this example deals with textual values, hence the output of the STYLE function needs to be appended to the text using the & operator. The function T() is used to prevent the number "0" being appended to the resulting text.
ORG.OPENOFFICE.STYLE