Excel.ErrorCellValueType enum

オブジェクトの型を ErrorCellValue 表します。

注釈

[ API セット: ExcelApi 1.16 ]

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

フィールド

blocked = "Blocked"

を表します BlockedErrorCellValue

busy = "Busy"

を表します BusyErrorCellValue

calc = "Calc"

を表します CalcErrorCellValue

connect = "Connect"

を表します ConnectErrorCellValue

div0 = "Div0"

を表します Div0ErrorCellValue

external = "External"

を表します ExternalErrorCellValue

field = "Field"

を表します FieldErrorCellValue

gettingData = "GettingData"

を表します GettingDataErrorCellValue

name = "Name"

を表します NameErrorCellValue

notAvailable = "NotAvailable"

を表します NotAvailableErrorCellValue

null = "Null"

を表します NullErrorCellValue

num = "Num"

を表します NumErrorCellValue

placeholder = "Placeholder"

を表します PlaceholderErrorCellValue

python = "Python"

を表します PythonErrorCellValue

ref = "Ref"

を表します RefErrorCellValue

spill = "Spill"

を表します SpillErrorCellValue

timeout = "Timeout"

を表します TimeoutErrorCellValue

value = "Value"

を表します ValueErrorCellValue