|
|
|
|
|
La propiedad Cumulated permite saber si el valor de una columna o fila de un control Tabla dinámica corresponde a un total (total al final de una fila o columna). Esta propiedad solo puede utilizarse en el proceso de visualización de una celda. // 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 Encabezado de la fila o columna de un control Tabla dinámica. Observaciones También puede verificar si el valor de una fila o columna de un control Tabla dinámica corresponde a un total probando el valor de la fila o columna. Para un total: - el valor de la columna o fila 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|