Excel.CellValueType enum

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

注釈

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

フィールド

array = "Array"

を表します ArrayCellValue

boolean = "Boolean"

を表します BooleanCellValue

double = "Double"

を表します DoubleCellValue

empty = "Empty"

を表します EmptyCellValue

entity = "Entity"

を表します EntityCellValue

error = "Error"

を表します ErrorCellValue

externalCodeServiceObject = "ExternalCodeServiceObject"

を表します ExternalCodeServiceObjectCellValue

formattedNumber = "FormattedNumber"

を表します FormattedNumberCellValue

linkedEntity = "LinkedEntity"

を表します LinkedEntityCellValue

localImage = "LocalImage"

を表します LocalImageCellValue

notAvailable = "NotAvailable"

を表します ValueTypeNotAvailableCellValue

reference = "Reference"

を表します ReferenceCellValue

string = "String"

を表します StringCellValue

webImage = "WebImage"

を表します WebImageCellValue