Skip to content

Function: getCellValue()

ts
function getCellValue(
   worksheet: Worksheet, 
   row: number, 
   col: number): any;

Defined in: src/excel/excel.tsx:883

Get the value of a cell.

Parameters

ParameterTypeDescription
worksheetWorksheetThe ExcelJS worksheet.
rownumberThe 1-based row index.
colnumberThe 1-based column index.

Returns

any

The value of the cell.

Example

ts
const status = getCellValue(worksheet, 2, 4);
const name = getCellValue(worksheet, 3, 1);

Matterway Assistant SDK Documentation