Excel.ErrorCellValueType enum

Stellt die Typen des ErrorCellValue Objekts dar.

Hinweise

API-Satz: ExcelApi 1.16

Beispiele

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

Felder

blocked = "Blocked"

Stellt eine BlockedErrorCellValuedar.

busy = "Busy"

Stellt eine BusyErrorCellValuedar.

calc = "Calc"

Stellt eine CalcErrorCellValuedar.

connect = "Connect"

Stellt eine ConnectErrorCellValuedar.

div0 = "Div0"

Stellt eine Div0ErrorCellValuedar.

external = "External"

Stellt eine .ExternalErrorCellValue

field = "Field"

Stellt eine FieldErrorCellValuedar.

gettingData = "GettingData"

Stellt eine GettingDataErrorCellValuedar.

name = "Name"

Stellt eine NameErrorCellValuedar.

notAvailable = "NotAvailable"

Stellt eine NotAvailableErrorCellValuedar.

null = "Null"

Stellt eine NullErrorCellValuedar.

num = "Num"

Stellt eine NumErrorCellValuedar.

placeholder = "Placeholder"

Stellt eine PlaceholderErrorCellValuedar.

python = "Python"

Stellt eine PythonErrorCellValuedar.

ref = "Ref"

Stellt eine RefErrorCellValuedar.

spill = "Spill"

Stellt eine SpillErrorCellValuedar.

timeout = "Timeout"

Stellt eine TimeoutErrorCellValuedar.

value = "Value"

Stellt eine ValueErrorCellValuedar.