Excel.CellValueType enum

Stellt die Typen des CellValue 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

array = "Array"

Stellt eine .ArrayCellValue

boolean = "Boolean"

Stellt eine BooleanCellValuedar.

double = "Double"

Stellt eine DoubleCellValuedar.

empty = "Empty"

Stellt eine .EmptyCellValue

entity = "Entity"

Stellt eine .EntityCellValue

error = "Error"

Stellt eine .ErrorCellValue

externalCodeServiceObject = "ExternalCodeServiceObject"

Stellt eine .ExternalCodeServiceObjectCellValue

formattedNumber = "FormattedNumber"

Stellt eine FormattedNumberCellValuedar.

function = "Function"

Stellt eine FunctionCellValuedar.

linkedEntity = "LinkedEntity"

Stellt eine LinkedEntityCellValuedar.

localImage = "LocalImage"

Stellt eine LocalImageCellValuedar.

notAvailable = "NotAvailable"

Stellt eine ValueTypeNotAvailableCellValuedar.

reference = "Reference"

Stellt eine ReferenceCellValuedar.

string = "String"

Stellt eine StringCellValuedar.

webImage = "WebImage"

Stellt eine WebImageCellValuedar.