ExcelScript.PivotLayoutType enum

Comentários

Usada por

Exemplos

/**
 * This script sets the layout of the "Farms Sales" PivotTable to the "tabular"
 * setting. This places the fields from the Rows area in separate columns.
 */ 
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();

  // Set the layout type to "tabular".
  layout.setLayoutType(ExcelScript.PivotLayoutType.tabular);
}

Campos

compact

Um formulário compactado horizontalmente com rótulos do próximo campo na mesma coluna.

outline

Os itens dos campos internos estão na mesma linha que os itens dos campos externos e os subtotais estão sempre na parte inferior.

tabular

Os itens dos campos internos estão sempre em uma nova linha em relação aos itens dos campos externos.