ExcelScript.SubtotalLocationType enum
Remarques
Exemples
/**
* This script displays group subtotals of the "Farms Sales" PivotTable.
*/
function main(workbook: ExcelScript.Workbook) {
// Get the PivotTable named "Farm Sales".
const pivot = workbook.getPivotTable("Farm Sales");
// Get the PivotLayout object.
const layout = pivot.getLayout();
// Show all the subtotals at the bottom of each group.
layout.setSubtotalLocation(ExcelScript.SubtotalLocationType.atBottom);
}
Champs
| atBottom | Les sous-totaux se trouvent en bas. |
| atTop | Les sous-totaux sont en haut. |
| off | Les sous-totaux sont désactivés. |