ExcelScript.ClearApplyTo enum

Comentários

Exemplos

/**
 * This script removes any extra formatting that's been applied to a table. 
 * This leaves only the base table style effects.
 * Any formatting outside of the table will be left as is.
 */
function main(workbook: ExcelScript.Workbook) {
  // Get the first table on the current worksheet.
  let worksheet = workbook.getActiveWorksheet();
  let table = worksheet.getTables()[0];

  // Get the range used by the table.
  let range = table.getRange();

  // Clear all the formatting that is not applied by the table and the table style.
  range.clear(ExcelScript.ClearApplyTo.formats);
}

Campos

all
contents

Limpa o conteúdo do intervalo.

formats

Limpa toda a formatação para o intervalo.

hyperlinks

Limpa todos os hiperlinks, mas deixa todo o conteúdo e a formatação intactos.

removeHyperlinks

Remove hiperlinks e formatação para a célula, mas deixa o conteúdo, formatos condicionais e validação de dados intactos.