excelGetCell

Description

Gets the string value from the specified cell.

Parameters

Return Type

String

Example

Get the values from cells in a workbook.

use "excel"; int fid = openWorkbook("snakes.xlsx"); string name = getCell(fid, "Venemous Snakes", "A2"); string species = getCell(fid, "Venemous Snakes", 1, 1); runnerLog(name + " - " + species); closeWorkbook(fid);

Result: Mainland Tigersnake - Notechis Scutatus. Note that the row index used to get the species name is 1 even though the cell address would be B2. This is because the cell index starts at 0.

Click here to download the workbook used in this example.

See also