Share via


Excel.ErrorCellValueType enum

Representa los tipos del ErrorCellValue objeto .

Comentarios

[ Conjunto de API: ExcelApi 1.16 ]

Ejemplos

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/20-data-types/data-types-error-values.yaml

// This function sets the value of cell A1 to a #BUSY! error using data types.
await Excel.run(async (context) => {
  // Retrieve the Sample worksheet and cell A1 on that sheet.
  const sheet = context.workbook.worksheets.getItemOrNullObject("Sample");
  const range = sheet.getRange("A1");

  // Get the error data type and set its type to `busy`.
  const error: Excel.ErrorCellValue = {
    type: Excel.CellValueType.error,
    errorType: Excel.ErrorCellValueType.busy
  };

  // Set cell A1 as the busy error.
  range.valuesAsJson = [[error]];
  await context.sync();
});

Campos

blocked = "Blocked"

Representa un objeto BlockedErrorCellValue.

busy = "Busy"

Representa un objeto BusyErrorCellValue.

calc = "Calc"

Representa un objeto CalcErrorCellValue.

connect = "Connect"

Representa un objeto ConnectErrorCellValue.

div0 = "Div0"

Representa un objeto Div0ErrorCellValue.

external = "External"

Representa un objeto ExternalErrorCellValue.

field = "Field"

Representa un objeto FieldErrorCellValue.

gettingData = "GettingData"

Representa un objeto GettingDataErrorCellValue.

name = "Name"

Representa un objeto NameErrorCellValue.

notAvailable = "NotAvailable"

Representa un objeto NotAvailableErrorCellValue.

null = "Null"

Representa un objeto NullErrorCellValue.

num = "Num"

Representa un objeto NumErrorCellValue.

placeholder = "Placeholder"

Representa un objeto PlaceholderErrorCellValue.

python = "Python"

Representa un objeto PythonErrorCellValue.

ref = "Ref"

Representa un objeto RefErrorCellValue.

spill = "Spill"

Representa un objeto SpillErrorCellValue.

timeout = "Timeout"

Representa un objeto TimeoutErrorCellValue.

value = "Value"

Representa un objeto ValueErrorCellValue.