Skip to main content

ExcelSetCellAsBoolean

Structure

ExcelSetCellAsBoolean(iRow,iCol,bValue)

Type

Procedure

Description

This procedure sets the indicated cell of the current sheet to the boolean value.

Parameters

iRow = The row of the cell. 1 is the top row.

iCol = The column of the cell. 1 corresponds to column A

bValue = The boolean to set the cell to.

Example

Try
ExcelNewFile(3,"v2003")
ExcelGetSheetByIndex(1)
ShowMessage(ExcelGetCellIsBoolean(1,1)) 'Returns "0"
ExcelSetCellAsBoolean(1,1,true)
ShowMessage(ExcelGetCellIsBoolean(1,1)) 'Returns "1"
Except
ShowMessage(LastExceptionMessage)
End Try