|
|
|
|
El Acumulado Property se utiliza para determinar si el valor de una columna o fila en control Tabla dinámica corresponde a un total (total al final de un fila o columna). Esta propiedad sólo puede ser usada en la pantalla Process de una célula. // Display code of a cell in a Pivot Table control IF COL_OrderDate_Year.Cumulated = True OR COL_Country.Cumulated = True THEN fntFont is Font // We are positioned on a total row/column fntFont.Name = "Trebuchet MS" fntFont.Size = 8 fntFont.Color = Black fntFont.Bold = True fntFont.Italic = True // Changes the background color of totals VAL_TO.BackgroundColor = YellowToolhelp VAL_Qty.BackgroundColor = YellowToolhelp // Changes the font VAL_TO.Font = fntFont VAL_Qty.Font = fntFont ELSE IF VAL_TO <= 500 _AND_ VAL_TO > 0 THEN VAL_TO.BackgroundColor = PastelRed END IF VAL_TO >= 30000 THEN VAL_TO.BackgroundColor = PastelGreen END END
Sintaxis
<Result> = <Row or column header>.Cumulated
<Result>: booleano - True si la columna o fila corresponde a un total,
- False en caso contrario.
<Row or column header>: Nombre del control Cabecera Fila o cabecera de columna en un control Tabla dinámica. Observaciones También puede averiguar si el valor de una fila o columna de una control Tabla dinámica corresponde a un total verificando el valor de la fila o columna. Para un total: - el valor de la fila o columna corresponde a "*"..
- la propiedad Cumulated se establece en True.
// Display code of a cell in a Pivot Table control IF COL_OrderDate_Year.Cumulated = "*" OR COL_Country.Cumulated = "*" THEN fntFont is Font // We are positioned on a total row/column fntFont.Name = "Trebuchet MS" fntFont.Size = 8 fntFont.Color = Black fntFont.Bold = True fntFont.Italic = True // Changes the background color of totals VAL_TO.BackgroundColor = YellowToolhelp VAL_Qty.BackgroundColor = YellowToolhelp // Changes the font VAL_TO.Font = fntFont VAL_Qty.Font = fntFont ELSE IF VAL_TO <= 500 _AND_ VAL_TO > 0 THEN VAL_TO.BackgroundColor = PastelRed END IF VAL_TO >= 30000 THEN VAL_TO.BackgroundColor = PastelGreen END END
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|