ExcelScript.SubtotalLocationType enum

Hinweise

Beispiele

/**
 * 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);
}

Felder

atBottom

Teilergebnisse befinden sich am unteren Rand.

atTop

Teilergebnisse befinden sich ganz oben.

off

Teilergebnisse sind deaktiviert.