ExcelScript.SpecialCellType enum

Comentarios

Ejemplos

/**
 * This script finds and highlights all the cells in the current worksheet that contain a formula.
 */
function main(workbook: ExcelScript.Workbook) {
  // Get the used range on the current sheet.
  const currentSheet = workbook.getActiveWorksheet();
  const usedRange = currentSheet.getUsedRange();

  // Get the RangeAreas object for each cell with a formula.
  const formulaCells = usedRange.getSpecialCells(ExcelScript.SpecialCellType.formulas);

  // Add a light blue background to the cells containing formulas.
  formulaCells.getFormat().getFill().setColor("#ADD8E6");
}

Campos

blanks

Celdas sin contenido.

conditionalFormats

Todas las celdas con formatos condicionales.

constants

Celdas que contienen constantes.

dataValidations

Celdas con criterios de validación.

formulas

Celdas que contienen fórmulas.

sameConditionalFormat

Celdas con el mismo formato condicional que la primera celda del rango.

sameDataValidation

Celdas con los mismos criterios de validación de datos que la primera celda del intervalo.

visible

Celdas visibles.